Public Member Functions | Public Attributes

sp::dim::triangle3d< T, C > Class Template Reference

#include <spDimensionTriangle3D.hpp>

List of all members.

Public Member Functions

 triangle3d ()
 triangle3d (const C &NewPointA, const C &NewPointB, const C &NewPointC)
 triangle3d (const triangle3d< T > &Other)
 triangle3d (const triangle3d< T, C * > &Other)
 ~triangle3d ()
triangle3d< T > & operator= (const triangle3d< T, C * > &other)
triangle3d< T > operator+ (const vector3d< T > &Vector) const
triangle3d< T > & operator+= (const vector3d< T > &Vector)
triangle3d< T > operator- (const vector3d< T > &Vector) const
triangle3d< T > & operator-= (const vector3d< T > &Vector)
triangle3d< T > operator* (const vector3d< T > &Vector) const
triangle3d< T > & operator*= (const vector3d< T > &Vector)
triangle3d< T > operator/ (const vector3d< T > &Vector) const
triangle3d< T > & operator/= (const vector3d< T > &Vector)
triangle3d< T > operator- () const
const vector3d< T > operator[] (s32 i) const
vector3d< T > & operator[] (s32 i)
vector3d< T > getNormalSq () const
 Returns the unnormalized normal vector.
vector3d< T > getNormal () const
 Returns the normal vector.
vector3d< T > getCenter () const
 Returns the triangle's center point.
getArea () const
 Returns the triangle's area.
bool isPointInside (const vector3d< T > &Vector) const
bool isFrontSide () const
getBarycentricPoint (const vector3d< T > &Coord) const
triangle3d< T > getSwaped () const
triangle3d< T > & swap ()
line3d< T > getBox () const
bool equal (const triangle3d< T > &other, f32 Precision=math::ROUNDING_ERROR) const
bool empty () const
bool isFaceVisible () const
template<typename T2 , class C2 >
triangle3d< T2, C2 > cast () const

Public Attributes

PointA
PointB
PointC

template<typename T, class C = vector3d<T>>
class sp::dim::triangle3d< T, C >


Constructor & Destructor Documentation

template<typename T, class C = vector3d<T>>
sp::dim::triangle3d< T, C >::triangle3d (  )  [inline]
template<typename T, class C = vector3d<T>>
sp::dim::triangle3d< T, C >::triangle3d ( const C &  NewPointA,
const C &  NewPointB,
const C &  NewPointC 
) [inline]
template<typename T, class C = vector3d<T>>
sp::dim::triangle3d< T, C >::triangle3d ( const triangle3d< T > &  Other  )  [inline]
template<typename T, class C = vector3d<T>>
sp::dim::triangle3d< T, C >::triangle3d ( const triangle3d< T, C * > &  Other  )  [inline]
template<typename T, class C = vector3d<T>>
sp::dim::triangle3d< T, C >::~triangle3d (  )  [inline]

Member Function Documentation

template<typename T, class C = vector3d<T>>
template<typename T2 , class C2 >
triangle3d<T2, C2> sp::dim::triangle3d< T, C >::cast (  )  const [inline]
template<typename T, class C = vector3d<T>>
bool sp::dim::triangle3d< T, C >::empty (  )  const [inline]
template<typename T, class C = vector3d<T>>
bool sp::dim::triangle3d< T, C >::equal ( const triangle3d< T > &  other,
f32  Precision = math::ROUNDING_ERROR 
) const [inline]
template<typename T, class C = vector3d<T>>
T sp::dim::triangle3d< T, C >::getArea (  )  const [inline]

Returns the triangle's area.

template<typename T, class C = vector3d<T>>
C sp::dim::triangle3d< T, C >::getBarycentricPoint ( const vector3d< T > &  Coord  )  const [inline]

Returns the point on the triangles given by the barycentric coordinate.

Parameters:
[in] Coord Specifies the barycentric coordinate. This vector must be normalized if the resulting point is used to be inside the triangle.
Returns:
Coordinate vector in cartesian coordinates lying onto the triangle.
template<typename T, class C = vector3d<T>>
line3d<T> sp::dim::triangle3d< T, C >::getBox (  )  const [inline]
template<typename T, class C = vector3d<T>>
vector3d<T> sp::dim::triangle3d< T, C >::getCenter (  )  const [inline]

Returns the triangle's center point.

template<typename T, class C = vector3d<T>>
vector3d<T> sp::dim::triangle3d< T, C >::getNormal (  )  const [inline]

Returns the normal vector.

template<typename T, class C = vector3d<T>>
vector3d<T> sp::dim::triangle3d< T, C >::getNormalSq (  )  const [inline]

Returns the unnormalized normal vector.

template<typename T, class C = vector3d<T>>
triangle3d<T> sp::dim::triangle3d< T, C >::getSwaped (  )  const [inline]
template<typename T, class C = vector3d<T>>
bool sp::dim::triangle3d< T, C >::isFaceVisible (  )  const [inline]
template<typename T, class C = vector3d<T>>
bool sp::dim::triangle3d< T, C >::isFrontSide (  )  const [inline]
template<typename T, class C = vector3d<T>>
bool sp::dim::triangle3d< T, C >::isPointInside ( const vector3d< T > &  Vector  )  const [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T> sp::dim::triangle3d< T, C >::operator* ( const vector3d< T > &  Vector  )  const [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T>& sp::dim::triangle3d< T, C >::operator*= ( const vector3d< T > &  Vector  )  [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T> sp::dim::triangle3d< T, C >::operator+ ( const vector3d< T > &  Vector  )  const [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T>& sp::dim::triangle3d< T, C >::operator+= ( const vector3d< T > &  Vector  )  [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T> sp::dim::triangle3d< T, C >::operator- ( const vector3d< T > &  Vector  )  const [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T> sp::dim::triangle3d< T, C >::operator- (  )  const [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T>& sp::dim::triangle3d< T, C >::operator-= ( const vector3d< T > &  Vector  )  [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T> sp::dim::triangle3d< T, C >::operator/ ( const vector3d< T > &  Vector  )  const [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T>& sp::dim::triangle3d< T, C >::operator/= ( const vector3d< T > &  Vector  )  [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T>& sp::dim::triangle3d< T, C >::operator= ( const triangle3d< T, C * > &  other  )  [inline]
template<typename T, class C = vector3d<T>>
const vector3d<T> sp::dim::triangle3d< T, C >::operator[] ( s32  i  )  const [inline]
template<typename T, class C = vector3d<T>>
vector3d<T>& sp::dim::triangle3d< T, C >::operator[] ( s32  i  )  [inline]
template<typename T, class C = vector3d<T>>
triangle3d<T>& sp::dim::triangle3d< T, C >::swap (  )  [inline]

Member Data Documentation

template<typename T, class C = vector3d<T>>
C sp::dim::triangle3d< T, C >::PointA
template<typename T, class C = vector3d<T>>
C sp::dim::triangle3d< T, C >::PointB
template<typename T, class C = vector3d<T>>
C sp::dim::triangle3d< T, C >::PointC

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines