Triangles. More...
#include <triangle_math.h>
Public Member Functions | |
Trianglex () | |
Trianglex (const Trianglex< Type > ©) | |
Trianglex (const Vec2< Type > &point_p, const Vec2< Type > &point_q, const Vec2< Type > &point_r) | |
bool | operator!= (const Trianglex< Type > &triangle) const |
Trianglex< Type > & | operator= (const Trianglex< Type > ©) |
bool | operator== (const Trianglex< Type > &triangle) const |
bool | point_inside (const Vec2< Type > &point) const |
Return true if the point is inside the triangle. More... | |
Public Attributes | |
Vec2< Type > | p |
First triangle point. More... | |
Vec2< Type > | q |
Vec2< Type > | r |
Triangles.
These triangle templates are defined for: int (Triangle), float (Trianglef), double (Triangled)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool uicore::Trianglex< Type >::point_inside | ( | const Vec2< Type > & | point | ) | const |
Return true if the point is inside the triangle.
point | = point to test. |
Vec2<Type> uicore::Trianglex< Type >::p |
First triangle point.
Referenced by uicore::Trianglex< int >::operator!=(), uicore::Trianglex< int >::operator=(), and uicore::Trianglex< int >::operator==().
Vec2<Type> uicore::Trianglex< Type >::q |
Vec2<Type> uicore::Trianglex< Type >::r |