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