Plasma Engine  2.0
Loading...
Searching...
No Matches
plCoordinateSystemConversion Class Reference

Helper class to convert between two plCoordinateSystem spaces. More...

#include <CoordinateSystem.h>

Public Member Functions

 plCoordinateSystemConversion ()
 Creates a new conversion that until set up, does identity conversions.
 
void SetConversion (const plCoordinateSystem &source, const plCoordinateSystem &target)
 Set up the source and target coordinate systems.
 
plVec3 ConvertSourcePosition (const plVec3 &vPos) const
 Returns the equivalent point in the target coordinate system.
 
plQuat ConvertSourceRotation (const plQuat &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.
 
plVec3 ConvertTargetPosition (const plVec3 &vPos) const
 Returns the equivalent point in the source coordinate system.
 
plQuat ConvertTargetRotation (const plQuat &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.
 

Detailed Description

Helper class to convert between two plCoordinateSystem 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.


The documentation for this class was generated from the following files: