#include <spDimensionTriangle3D.hpp>
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. | |
T | getArea () const |
Returns the triangle's area. | |
bool | isPointInside (const vector3d< T > &Vector) const |
bool | isFrontSide () const |
C | 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 | |
C | PointA |
C | PointB |
C | PointC |
sp::dim::triangle3d< T, C >::triangle3d | ( | ) | [inline] |
sp::dim::triangle3d< T, C >::triangle3d | ( | const C & | NewPointA, | |
const C & | NewPointB, | |||
const C & | NewPointC | |||
) | [inline] |
sp::dim::triangle3d< T, C >::triangle3d | ( | const triangle3d< T > & | Other | ) | [inline] |
sp::dim::triangle3d< T, C >::triangle3d | ( | const triangle3d< T, C * > & | Other | ) | [inline] |
sp::dim::triangle3d< T, C >::~triangle3d | ( | ) | [inline] |
triangle3d<T2, C2> sp::dim::triangle3d< T, C >::cast | ( | ) | const [inline] |
bool sp::dim::triangle3d< T, C >::empty | ( | ) | const [inline] |
bool sp::dim::triangle3d< T, C >::equal | ( | const triangle3d< T > & | other, | |
f32 | Precision = math::ROUNDING_ERROR | |||
) | const [inline] |
T sp::dim::triangle3d< T, C >::getArea | ( | ) | const [inline] |
Returns the triangle's area.
C sp::dim::triangle3d< T, C >::getBarycentricPoint | ( | const vector3d< T > & | Coord | ) | const [inline] |
Returns the point on the triangles given by the barycentric coordinate.
[in] | Coord | Specifies the barycentric coordinate. This vector must be normalized if the resulting point is used to be inside the triangle. |
line3d<T> sp::dim::triangle3d< T, C >::getBox | ( | ) | const [inline] |
vector3d<T> sp::dim::triangle3d< T, C >::getCenter | ( | ) | const [inline] |
Returns the triangle's center point.
vector3d<T> sp::dim::triangle3d< T, C >::getNormal | ( | ) | const [inline] |
Returns the normal vector.
vector3d<T> sp::dim::triangle3d< T, C >::getNormalSq | ( | ) | const [inline] |
Returns the unnormalized normal vector.
triangle3d<T> sp::dim::triangle3d< T, C >::getSwaped | ( | ) | const [inline] |
bool sp::dim::triangle3d< T, C >::isFaceVisible | ( | ) | const [inline] |
bool sp::dim::triangle3d< T, C >::isFrontSide | ( | ) | const [inline] |
bool sp::dim::triangle3d< T, C >::isPointInside | ( | const vector3d< T > & | Vector | ) | const [inline] |
triangle3d<T> sp::dim::triangle3d< T, C >::operator* | ( | const vector3d< T > & | Vector | ) | const [inline] |
triangle3d<T>& sp::dim::triangle3d< T, C >::operator*= | ( | const vector3d< T > & | Vector | ) | [inline] |
triangle3d<T> sp::dim::triangle3d< T, C >::operator+ | ( | const vector3d< T > & | Vector | ) | const [inline] |
triangle3d<T>& sp::dim::triangle3d< T, C >::operator+= | ( | const vector3d< T > & | Vector | ) | [inline] |
triangle3d<T> sp::dim::triangle3d< T, C >::operator- | ( | const vector3d< T > & | Vector | ) | const [inline] |
triangle3d<T> sp::dim::triangle3d< T, C >::operator- | ( | ) | const [inline] |
triangle3d<T>& sp::dim::triangle3d< T, C >::operator-= | ( | const vector3d< T > & | Vector | ) | [inline] |
triangle3d<T> sp::dim::triangle3d< T, C >::operator/ | ( | const vector3d< T > & | Vector | ) | const [inline] |
triangle3d<T>& sp::dim::triangle3d< T, C >::operator/= | ( | const vector3d< T > & | Vector | ) | [inline] |
triangle3d<T>& sp::dim::triangle3d< T, C >::operator= | ( | const triangle3d< T, C * > & | other | ) | [inline] |
const vector3d<T> sp::dim::triangle3d< T, C >::operator[] | ( | s32 | i | ) | const [inline] |
vector3d<T>& sp::dim::triangle3d< T, C >::operator[] | ( | s32 | i | ) | [inline] |
triangle3d<T>& sp::dim::triangle3d< T, C >::swap | ( | ) | [inline] |
C sp::dim::triangle3d< T, C >::PointA |
C sp::dim::triangle3d< T, C >::PointB |
C sp::dim::triangle3d< T, C >::PointC |