clan::Trianglex< Type > Class Template Reference

Triangles. More...

#include <triangle_math.h>

Public Member Functions

 Trianglex ()
 
 Trianglex (const Trianglex< Type > &copy)
 
 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 > &copy)
 
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
 

Detailed Description

template<typename Type>
class clan::Trianglex< Type >

Triangles.

These triangle templates are defined for: int (Triangle), float (Trianglef), double (Triangled)

Constructor & Destructor Documentation

template<typename Type>
clan::Trianglex< Type >::Trianglex ( )
inline
template<typename Type>
clan::Trianglex< Type >::Trianglex ( const Trianglex< Type > &  copy)
inline
template<typename Type>
clan::Trianglex< Type >::Trianglex ( const Vec2< Type > &  point_p,
const Vec2< Type > &  point_q,
const Vec2< Type > &  point_r 
)
inline

Member Function Documentation

template<typename Type>
bool clan::Trianglex< Type >::operator!= ( const Trianglex< Type > &  triangle) const
inline
template<typename Type>
Trianglex<Type>& clan::Trianglex< Type >::operator= ( const Trianglex< Type > &  copy)
inline
template<typename Type>
bool clan::Trianglex< Type >::operator== ( const Trianglex< Type > &  triangle) const
inline
template<typename Type>
bool clan::Trianglex< Type >::point_inside ( const Vec2< Type > &  point) const

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

template<typename Type>
Vec2<Type> clan::Trianglex< Type >::p

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