Public Member Functions | Public Attributes

CL_Trianglef Class Reference
[clanCore Math]

Triangles - Float. More...

#include <triangle_math.h>

Inheritance diagram for CL_Trianglef:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

bool point_inside (const CL_Vec2< float > &point) const
 Return true if the point is inside the triangle.
Operators

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

Public Attributes

CL_Vec2< float > p
 First triangle point.
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 [inline, inherited]

!= operator.

bool CL_Trianglex< float >::operator== ( const CL_Trianglex< float > &  triangle  )  const [inline, inherited]

== 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: