coord is a position/rotation pair.
More...
#include <Coord.h>
List of all members.
Public Types |
enum | Params { PosSize = POS_TYPE::Size,
RotSize = ROT_TYPE::Size
} |
typedef POS_TYPE::DataType | DataType |
typedef POS_TYPE | PosDataType |
typedef ROT_TYPE | RotDataType |
Public Member Functions |
| Coord () |
| Coord (const Coord< POS_TYPE, ROT_TYPE > &coord) |
| Coord (const POS_TYPE &pos, const ROT_TYPE &rot) |
const POS_TYPE & | getPos () const |
const ROT_TYPE & | getRot () const |
POS_TYPE & | pos () |
| accessor to the position element
|
ROT_TYPE & | rot () |
| accessor to the rotation element
|
|
Construct objects from primitive types Just assigns values in order to the pos and rot members' members.
|
| Coord (DataType a0, DataType a1, DataType a2, DataType a3, DataType a4, DataType a5) |
| Coord (DataType a0, DataType a1, DataType a2, DataType a3, DataType a4, DataType a5, DataType a6) |
| Coord (DataType a0, DataType a1, DataType a2, DataType a3, DataType a4, DataType a5, DataType a6, DataType a7) |
Public Attributes |
POS_TYPE | mPos |
| const accessor to the position element
|
ROT_TYPE | mRot |
Detailed Description
template<typename POS_TYPE, typename ROT_TYPE>
class gmtl::Coord< POS_TYPE, ROT_TYPE >
coord is a position/rotation pair.
coord consists of a position element and a rotation element.
"How to define an Vector/Euler pair (32 bit float precision):"
Coord<Vec3f, EulerAngleXYZf> myEulerCoord;
"Or use the built in typedefs:"
CoordVec3fEulerAngleXYZf myEulerCoord;
Coord3fQuat myOtherEulerCoord;
- See also:
- Vec, AxisAngle, EulerAngle
Definition at line 37 of file Coord.h.
Member Typedef Documentation
template<typename POS_TYPE, typename ROT_TYPE>
template<typename POS_TYPE, typename ROT_TYPE>
template<typename POS_TYPE, typename ROT_TYPE>
Member Enumeration Documentation
template<typename POS_TYPE, typename ROT_TYPE>
- Enumerator:
-
Definition at line 47 of file Coord.h.
Constructor & Destructor Documentation
template<typename POS_TYPE, typename ROT_TYPE>
template<typename POS_TYPE, typename ROT_TYPE>
template<typename POS_TYPE, typename ROT_TYPE>
gmtl::Coord< POS_TYPE, ROT_TYPE >::Coord |
( |
const POS_TYPE & |
pos, |
|
|
const ROT_TYPE & |
rot | |
|
) |
| | [inline] |
template<typename POS_TYPE, typename ROT_TYPE>
template<typename POS_TYPE, typename ROT_TYPE>
template<typename POS_TYPE, typename ROT_TYPE>
Member Function Documentation
template<typename POS_TYPE, typename ROT_TYPE>
const POS_TYPE& gmtl::Coord< POS_TYPE, ROT_TYPE >::getPos |
( |
|
) |
const [inline] |
template<typename POS_TYPE, typename ROT_TYPE>
const ROT_TYPE& gmtl::Coord< POS_TYPE, ROT_TYPE >::getRot |
( |
|
) |
const [inline] |
template<typename POS_TYPE, typename ROT_TYPE>
POS_TYPE& gmtl::Coord< POS_TYPE, ROT_TYPE >::pos |
( |
|
) |
[inline] |
accessor to the position element
- Todo:
what about having a pos, and a const_pos naming convention?
what about having a rot, and a const_rot naming convention?
Definition at line 124 of file Coord.h.
template<typename POS_TYPE, typename ROT_TYPE>
ROT_TYPE& gmtl::Coord< POS_TYPE, ROT_TYPE >::rot |
( |
|
) |
[inline] |
accessor to the rotation element
Definition at line 127 of file Coord.h.
Member Data Documentation
template<typename POS_TYPE, typename ROT_TYPE>
const accessor to the position element
const accessor to the rotation element
Definition at line 136 of file Coord.h.
template<typename POS_TYPE, typename ROT_TYPE>
The documentation for this class was generated from the following file: