![]() |
XII Release 0.1.0
|
Helper class to convert between two xiiCoordinateSystem spaces. More...
#include <CoordinateSystem.h>
Public Member Functions | |
xiiCoordinateSystemConversion () | |
Creates a new conversion that until set up, does identity conversions. | |
void | SetConversion (const xiiCoordinateSystem &source, const xiiCoordinateSystem &target) |
Set up the source and target coordinate systems. | |
xiiVec3 | ConvertSourcePosition (const xiiVec3 &vPos) const |
Returns the equivalent point in the target coordinate system. | |
xiiQuat | ConvertSourceRotation (const xiiQuat &qOrientation) const |
Returns the equivalent rotation in the target coordinate system. | |
float | ConvertSourceLength (float fLength) const |
Returns the equivalent length in the target coordinate system. | |
xiiVec3 | ConvertTargetPosition (const xiiVec3 &vPos) const |
Returns the equivalent point in the source coordinate system. | |
xiiQuat | ConvertTargetRotation (const xiiQuat &qOrientation) const |
Returns the equivalent rotation in the source coordinate system. | |
float | ConvertTargetLength (float fLength) const |
Returns the equivalent length in the source coordinate system. | |
Helper class to convert between two xiiCoordinateSystem spaces.
All functions will do an identity transform until SetConversion is called to set up the conversion. Afterwards the convert functions can be used to convert between the two systems in both directions. Currently, only uniformly scaled orthogonal coordinate systems are supported. They can however be right handed or left handed.