#include <TCMathCoord3D.h>

Public Types | |
| enum | { NUM_COMPONENTS = 3 } |
| typedef T | DataType |
Public Member Functions | |
| Coord3D () | |
| all thre components are init with 0 | |
| Coord3D (const T vIn) | |
| Init all components with one value. | |
| Coord3D (const T vIn[]) | |
| Init components with values of an array. | |
| Coord3D (const T xIn, const T yIn, const T zIn) | |
| Constructor for setting all three components with different values. | |
| Coord3D (const Coord3D< T > &coord) | |
| Copy constructor. | |
| const T & | operator[] (sint32 pos) const |
| Get one of the 3 component values. | |
| T & | operator[] (sint32 pos) |
| Set one of the 3 component values. | |
| Coord3D< T > & | operator= (const Coord3D< T > &a) |
| Coord3D< T > & | operator= (const T &vIn) |
| Coord3D< T > & | operator+= (const Coord3D< T > &b) |
| Coord3D< T > & | operator+= (const T &b) |
| Coord3D< T > & | operator-= (const Coord3D< T > &b) |
| Coord3D< T > & | operator-= (const T &b) |
| Coord3D< T > & | operator*= (const T &vIn) |
| Coord3D< T > & | operator/= (const T &vIn) |
| operator T * () | |
| operator const T * () const | |
| double | Length2 () const |
| double | Length () const |
| void | Normalize () |
| Normalize vector Check for 0 len is done. | |
| T | MaxValue () const |
Private Attributes | |
| T | m_data [NUM_COMPONENTS] |
| stores the three components of the coordinate | |
Definition at line 65 of file TCMathCoord3D.h.
| typedef T TC::Math::Coord3D< T >::DataType |
Definition at line 175 of file TCMathCoord3D.h.
| anonymous enum |
| TC::Math::Coord3D< T >::Coord3D | ( | ) | [inline] |
all thre components are init with 0
Definition at line 69 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| TC::Math::Coord3D< T >::Coord3D | ( | const T | vIn | ) | [inline, explicit] |
Init all components with one value.
Definition at line 79 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| TC::Math::Coord3D< T >::Coord3D | ( | const T | vIn[] | ) | [inline, explicit] |
Init components with values of an array.
Definition at line 89 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| TC::Math::Coord3D< T >::Coord3D | ( | const T | xIn, | |
| const T | yIn, | |||
| const T | zIn | |||
| ) | [inline] |
Constructor for setting all three components with different values.
| xIn | value to init first vector component | |
| yIn | value to init second vector component | |
| zIn | value to init third vector component |
Definition at line 104 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| TC::Math::Coord3D< T >::Coord3D | ( | const Coord3D< T > & | coord | ) | [inline] |
Copy constructor.
| coord | value to copy |
Definition at line 116 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| const T& TC::Math::Coord3D< T >::operator[] | ( | sint32 | pos | ) | const [inline] |
Get one of the 3 component values.
Definition at line 125 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| T& TC::Math::Coord3D< T >::operator[] | ( | sint32 | pos | ) | [inline] |
Set one of the 3 component values.
Definition at line 127 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| Coord3D<T>& TC::Math::Coord3D< T >::operator= | ( | const Coord3D< T > & | a | ) | [inline] |
| Coord3D<T>& TC::Math::Coord3D< T >::operator= | ( | const T & | vIn | ) | [inline] |
| Coord3D<T>& TC::Math::Coord3D< T >::operator+= | ( | const Coord3D< T > & | b | ) | [inline] |
| Coord3D<T>& TC::Math::Coord3D< T >::operator+= | ( | const T & | b | ) | [inline] |
| Coord3D<T>& TC::Math::Coord3D< T >::operator-= | ( | const Coord3D< T > & | b | ) | [inline] |
| Coord3D<T>& TC::Math::Coord3D< T >::operator-= | ( | const T & | b | ) | [inline] |
| Coord3D<T>& TC::Math::Coord3D< T >::operator*= | ( | const T & | vIn | ) | [inline] |
| Coord3D<T>& TC::Math::Coord3D< T >::operator/= | ( | const T & | vIn | ) | [inline] |
| TC::Math::Coord3D< T >::operator T * | ( | ) | [inline] |
Definition at line 143 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| TC::Math::Coord3D< T >::operator const T * | ( | ) | const [inline] |
Definition at line 145 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
| double TC::Math::Coord3D< T >::Length2 | ( | ) | const [inline] |
Definition at line 148 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data.
Referenced by TC::Math::Coord3D< T >::Length(), and TC::Math::Coord3D< T >::Normalize().

| double TC::Math::Coord3D< T >::Length | ( | ) | const [inline] |
Definition at line 150 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::Length2().

| void TC::Math::Coord3D< T >::Normalize | ( | ) | [inline] |
Normalize vector Check for 0 len is done.
Definition at line 155 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::Length2(), and TC::Math::Coord3D< T >::m_data.

| T TC::Math::Coord3D< T >::MaxValue | ( | ) | const [inline] |
Definition at line 170 of file TCMathCoord3D.h.
References TC::Math::Coord3D< T >::m_data, and TC::Math::Max().

T TC::Math::Coord3D< T >::m_data[NUM_COMPONENTS] [private] |
stores the three components of the coordinate
Definition at line 182 of file TCMathCoord3D.h.
Referenced by TC::Math::Coord3D< T >::Coord3D(), TC::Math::Coord3D< T >::Length2(), TC::Math::Coord3D< T >::MaxValue(), TC::Math::Coord3D< T >::Normalize(), TC::Math::Coord3D< T >::operator const T *(), TC::Math::Coord3D< T >::operator T *(), TC::Math::Coord3D< T >::operator*=(), TC::Math::Coord3D< T >::operator+=(), TC::Math::Coord3D< T >::operator-=(), TC::Math::Coord3D< T >::operator/=(), TC::Math::Coord3D< T >::operator=(), and TC::Math::Coord3D< T >::operator[]().