CGR Localization
 All Classes Namespaces Files Functions Variables Macros Pages
Triangle3d< num > Class Template Reference

Public Member Functions

 Triangle3d (GVector::vector3d< num > _p0, GVector::vector3d< num > _p1, GVector::vector3d< num > _p2)
 
void set (GVector::vector3d< num > _p0, GVector::vector3d< num > _p1, GVector::vector3d< num > _p2)
 
void calcValues ()
 Calculate derived values (normal, centroid)
 
GVector::vector3d< num > closestPoint (GVector::vector3d< num > p)
 Closest point on this triangle plane to p.
 
num closestDist (GVector::vector3d< num > p)
 Closest distance from this triangle plane to p.
 
bool liesAlongside (GVector::vector3d< num > p)
 Returns true if p lies alongside this triangle.
 
bool intersects (Triangle3d< num > t)
 Return true if the triangle t intersect this triangle.
 
const GVector::vector3d< num > & P0 () const
 
const GVector::vector3d< num > & P1 () const
 
const GVector::vector3d< num > & P2 () const
 
const GVector::vector3d< num > & Normal () const
 
const GVector::vector3d< num > & Centroid () const
 
const num & Offset () const
 
void ToString (char *str) const
 
Triangle3d< num > operator* (num f) const
 returns this triangle scaled by f
 
Triangle3d< num > operator/ (num f) const
 returns this triangle scaled by 1/f
 
Triangle3d< num > & operator*= (num f)
 scales this triangle by f
 
Triangle3d< num > & operator/= (num f)
 scales this triangle by 1/f
 
Triangle3d< num > operator+ (GVector::vector3d< num > v) const
 returns this triangle translated by vector v
 
Triangle3d< num > operator- (GVector::vector3d< num > v) const
 
Triangle3d< num > & operator+= (GVector::vector3d< num > v)
 translates this triangle by vector v
 
Triangle3d< num > & operator-= (GVector::vector3d< num > v)
 

Detailed Description

template<class num>
class Triangle3d< num >

Definition at line 31 of file triangle.h.


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