Triangles - Float. More...

#include <triangle_math.h>

+ Inheritance diagram for clan::Trianglef:

Public Member Functions

 Trianglef ()
 
 Trianglef (const Trianglex< float > &copy)
 
 Trianglef (const Vec2< float > &point_p, const Vec2< float > &point_q, const Vec2< float > &point_r)
 
Attributes
bool point_inside (const Vec2< float > &point) const
 Return true if the point is inside the triangle. More...
 
Operators
bool operator== (const Trianglex< float > &triangle) const
 == operator. More...
 
bool operator!= (const Trianglex< float > &triangle) const
 != operator. More...
 

Public Attributes

Vec2< float > p
 First triangle point. More...
 
Vec2< float > q
 
Vec2< float > r
 

Detailed Description

Triangles - Float.

Member Function Documentation

bool clan::Trianglex< float >::operator!= ( const Trianglex< float > &  triangle) const
inlineinherited

!= operator.

bool clan::Trianglex< float >::operator== ( const Trianglex< float > &  triangle) const
inlineinherited

== operator.

bool clan::Trianglex< float >::point_inside ( const Vec2< float > &  point) const
inherited

Return true if the point is inside the triangle.

Parameters
point= point to test.
Returns
true if the point is inside the triangle

Member Data Documentation

Vec2<float > clan::Trianglex< float >::p
inherited

First triangle point.

Vec2<float > clan::Trianglex< float >::q
inherited
Vec2<float > clan::Trianglex< float >::r
inherited

The documentation for this class was generated from the following file: