Public Member Functions | Public Attributes

CL_Triangle Class Reference
[clanCore Math]

Triangles - Integer. More...

#include <triangle_math.h>

Inheritance diagram for CL_Triangle:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CL_Triangle ()
 CL_Triangle (const CL_Vec2< int > &point_p, const CL_Vec2< int > &point_q, const CL_Vec2< int > &point_r)
 CL_Triangle (const CL_Trianglex< int > &copy)
Attributes

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

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

Public Attributes

CL_Vec2< int > p
 First triangle point.
CL_Vec2< int > q
CL_Vec2< int > r

Detailed Description

Triangles - Integer.


Constructor & Destructor Documentation

CL_Triangle::CL_Triangle (  )  [inline]
CL_Triangle::CL_Triangle ( const CL_Trianglex< int > &  copy  )  [inline]
CL_Triangle::CL_Triangle ( const CL_Vec2< int > &  point_p,
const CL_Vec2< int > &  point_q,
const CL_Vec2< int > &  point_r 
) [inline]

Member Function Documentation

bool CL_Trianglex< int >::operator!= ( const CL_Trianglex< int > &  triangle  )  const [inline, inherited]
bool CL_Trianglex< int >::operator== ( const CL_Trianglex< int > &  triangle  )  const [inline, inherited]
bool CL_Trianglex< int >::point_inside ( const CL_Vec2< int > &  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<int > CL_Trianglex< int >::p [inherited]

First triangle point.

CL_Vec2<int > CL_Trianglex< int >::q [inherited]
CL_Vec2<int > CL_Trianglex< int >::r [inherited]

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