Triangles. More...
#include <triangle_math.h>
Public Member Functions | |
CL_Trianglex () | |
CL_Trianglex (const CL_Vec2< Type > &point_p, const CL_Vec2< Type > &point_q, const CL_Vec2< Type > &point_r) | |
CL_Trianglex (const CL_Trianglex< Type > ©) | |
Attributes | |
bool | point_inside (const CL_Vec2< Type > &point) const |
Return true if the point is inside the triangle. | |
Operators | |
CL_Trianglex< Type > & | operator= (const CL_Trianglex< Type > ©) |
= operator. | |
bool | operator== (const CL_Trianglex< Type > &triangle) const |
== operator. | |
bool | operator!= (const CL_Trianglex< Type > &triangle) const |
!= operator. | |
Public Attributes | |
CL_Vec2< Type > | p |
First triangle point. | |
CL_Vec2< Type > | q |
CL_Vec2< Type > | r |
Triangles.
These triangle templates are defined for: int (CL_Triangle), float (CL_Trianglef), double (CL_Triangled)
CL_Trianglex< Type >::CL_Trianglex | ( | ) | [inline] |
CL_Trianglex< Type >::CL_Trianglex | ( | const CL_Trianglex< Type > & | copy | ) | [inline] |
CL_Trianglex< Type >::CL_Trianglex | ( | const CL_Vec2< Type > & | point_p, | |
const CL_Vec2< Type > & | point_q, | |||
const CL_Vec2< Type > & | point_r | |||
) | [inline] |
bool CL_Trianglex< Type >::operator!= | ( | const CL_Trianglex< Type > & | triangle | ) | const [inline] |
!= operator.
CL_Trianglex<Type>& CL_Trianglex< Type >::operator= | ( | const CL_Trianglex< Type > & | copy | ) | [inline] |
= operator.
bool CL_Trianglex< Type >::operator== | ( | const CL_Trianglex< Type > & | triangle | ) | const [inline] |
== operator.
bool CL_Trianglex< Type >::point_inside | ( | const CL_Vec2< Type > & | point | ) | const |
Return true if the point is inside the triangle.
point | = point to test. |
CL_Vec2<Type> CL_Trianglex< Type >::p |
First triangle point.
Referenced by CL_Trianglex< int >::CL_Trianglex(), CL_Trianglex< int >::operator!=(), CL_Trianglex< int >::operator=(), and CL_Trianglex< int >::operator==().
CL_Vec2<Type> CL_Trianglex< Type >::q |
CL_Vec2<Type> CL_Trianglex< Type >::r |