Public Member Functions | Public Attributes

CL_Trianglex< Type > Class Template Reference
[clanCore Math]

Triangles. More...

#include <triangle_math.h>

Inheritance diagram for CL_Trianglex< Type >:
Inheritance graph
[legend]

List of all members.

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 > &copy)
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 > &copy)
 = 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

Detailed Description

template<typename Type>
class CL_Trianglex< Type >

Triangles.

These triangle templates are defined for: int (CL_Triangle), float (CL_Trianglef), double (CL_Triangled)


Constructor & Destructor Documentation

template<typename Type>
CL_Trianglex< Type >::CL_Trianglex (  )  [inline]
template<typename Type>
CL_Trianglex< Type >::CL_Trianglex ( const CL_Trianglex< Type > &  copy  )  [inline]
template<typename Type>
CL_Trianglex< Type >::CL_Trianglex ( const CL_Vec2< Type > &  point_p,
const CL_Vec2< Type > &  point_q,
const CL_Vec2< Type > &  point_r 
) [inline]

Member Function Documentation

template<typename Type>
bool CL_Trianglex< Type >::operator!= ( const CL_Trianglex< Type > &  triangle  )  const [inline]

!= operator.

template<typename Type>
CL_Trianglex<Type>& CL_Trianglex< Type >::operator= ( const CL_Trianglex< Type > &  copy  )  [inline]

= operator.

template<typename Type>
bool CL_Trianglex< Type >::operator== ( const CL_Trianglex< Type > &  triangle  )  const [inline]

== operator.

template<typename Type>
bool CL_Trianglex< Type >::point_inside ( const CL_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>
CL_Vec2<Type> CL_Trianglex< Type >::p
template<typename Type>
CL_Vec2<Type> CL_Trianglex< Type >::q
template<typename Type>
CL_Vec2<Type> CL_Trianglex< Type >::r

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