ClanLib  2.3.7
Public Member Functions | Public Attributes | List of all members
CL_Trianglef Class Reference

Triangles - Float. More...

#include <triangle_math.h>

Inheritance diagram for CL_Trianglef:
Inheritance graph
[legend]

Public Member Functions

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

Public Attributes

CL_Vec2< float > p
 First triangle point. More...
 
CL_Vec2< float > q
 
CL_Vec2< float > r
 

Detailed Description

Triangles - Float.

Constructor & Destructor Documentation

CL_Trianglef::CL_Trianglef ( )
inline
CL_Trianglef::CL_Trianglef ( const CL_Trianglex< float > &  copy)
inline
CL_Trianglef::CL_Trianglef ( const CL_Vec2< float > &  point_p,
const CL_Vec2< float > &  point_q,
const CL_Vec2< float > &  point_r 
)
inline

Member Function Documentation

bool CL_Trianglex< float >::operator!= ( const CL_Trianglex< float > &  triangle) const
inlineinherited

!= operator.

bool CL_Trianglex< float >::operator== ( const CL_Trianglex< float > &  triangle) const
inlineinherited

== operator.

bool CL_Trianglex< float >::point_inside ( const CL_Vec2< float > &  point) const
inherited

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

CL_Vec2<float > CL_Trianglex< float >::p
inherited

First triangle point.

CL_Vec2<float > CL_Trianglex< float >::q
inherited
CL_Vec2<float > CL_Trianglex< float >::r
inherited

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