Triangles - Float. More...
#include <triangle_math.h>
Public Member Functions | |
CL_Trianglef () | |
CL_Trianglef (const CL_Vec2< float > &point_p, const CL_Vec2< float > &point_q, const CL_Vec2< float > &point_r) | |
CL_Trianglef (const CL_Trianglex< float > ©) | |
Attributes | |
bool | point_inside (const CL_Vec2< float > &point) const |
Return true if the point is inside the triangle. | |
Operators | |
bool | operator== (const CL_Trianglex< float > &triangle) const |
== operator. | |
bool | operator!= (const CL_Trianglex< float > &triangle) const |
!= operator. | |
Public Attributes | |
CL_Vec2< float > | p |
First triangle point. | |
CL_Vec2< float > | q |
CL_Vec2< float > | r |
Triangles - Float.
CL_Trianglef::CL_Trianglef | ( | ) | [inline] |
CL_Trianglef::CL_Trianglef | ( | const CL_Trianglex< float > & | copy | ) | [inline] |
CL_Trianglef::CL_Trianglef | ( | const CL_Vec2< float > & | point_p, | |
const CL_Vec2< float > & | point_q, | |||
const CL_Vec2< float > & | point_r | |||
) | [inline] |
bool CL_Trianglex< float >::operator!= | ( | const CL_Trianglex< float > & | triangle | ) | const [inline, inherited] |
!= operator.
bool CL_Trianglex< float >::operator== | ( | const CL_Trianglex< float > & | triangle | ) | const [inline, inherited] |
== operator.
bool CL_Trianglex< float >::point_inside | ( | const CL_Vec2< float > & | point | ) | const [inherited] |
Return true if the point is inside the triangle.
point | = point to test. |
CL_Vec2<float > CL_Trianglex< float >::p [inherited] |
First triangle point.
CL_Vec2<float > CL_Trianglex< float >::q [inherited] |
CL_Vec2<float > CL_Trianglex< float >::r [inherited] |