Public Member Functions | Public Attributes

CL_Triangled Class Reference
[clanCore Math]

Triangles - Double. More...

#include <triangle_math.h>

Inheritance diagram for CL_Triangled:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CL_Triangled ()
 CL_Triangled (const CL_Vec2< double > &point_p, const CL_Vec2< double > &point_q, const CL_Vec2< double > &point_r)
 CL_Triangled (const CL_Trianglex< double > &copy)
Attributes

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

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

Public Attributes

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

Detailed Description

Triangles - Double.


Constructor & Destructor Documentation

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

Member Function Documentation

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

!= operator.

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

== operator.

bool CL_Trianglex< double >::point_inside ( const CL_Vec2< double > &  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<double > CL_Trianglex< double >::p [inherited]

First triangle point.

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

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