ClanLib  2.3.7
Public Member Functions | Public Attributes | List of all members
CL_Trianglex< Type > Class Template Reference

Triangles. More...

#include <triangle_math.h>

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

Public Member Functions

 CL_Trianglex ()
 
 CL_Trianglex (const CL_Trianglex< Type > &copy)
 
 CL_Trianglex (const CL_Vec2< Type > &point_p, const CL_Vec2< Type > &point_q, const CL_Vec2< Type > &point_r)
 
Attributes
bool point_inside (const CL_Vec2< Type > &point) const
 Return true if the point is inside the triangle. More...
 
Operators
CL_Trianglex< Type > & operator= (const CL_Trianglex< Type > &copy)
 = operator. More...
 
bool operator== (const CL_Trianglex< Type > &triangle) const
 == operator. More...
 
bool operator!= (const CL_Trianglex< Type > &triangle) const
 != operator. More...
 

Public Attributes

CL_Vec2< Type > p
 First triangle point. More...
 
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: