![]() |
Public API Reference |
![]() |
A class which defines a reversible transformation from one coordinate system to another by maintaining an inverse transformation matrix. More...
#include <csgeom/transfrm.h>
Public Member Functions | |
csOrthoTransform () | |
Initialize with the identity transformation. | |
csOrthoTransform (const csMatrix3 &o2t, const csVector3 &pos) | |
Initialize with the given transformation. | |
csOrthoTransform (const csTransform &t) | |
Initialize with the given transformation. | |
virtual void | SetO2T (const csMatrix3 &m) |
Set 'other' to 'this' transformation matrix. | |
virtual void | SetT2O (const csMatrix3 &m) |
Set 'this' to 'other' transformation matrix. |
A class which defines a reversible transformation from one coordinate system to another by maintaining an inverse transformation matrix.
This is a variant which only works on orthonormal transformations (like the camera transformation) and is consequently much more optimal.
Definition at line 739 of file transfrm.h.
csOrthoTransform::csOrthoTransform | ( | ) | [inline] |
Initialize with the identity transformation.
Definition at line 745 of file transfrm.h.
csOrthoTransform::csOrthoTransform | ( | const csMatrix3 & | o2t, |
const csVector3 & | pos | ||
) | [inline] |
Initialize with the given transformation.
Definition at line 750 of file transfrm.h.
csOrthoTransform::csOrthoTransform | ( | const csTransform & | t | ) | [inline] |
Initialize with the given transformation.
Definition at line 756 of file transfrm.h.
virtual void csOrthoTransform::SetO2T | ( | const csMatrix3 & | m | ) | [inline, virtual] |
Set 'other' to 'this' transformation matrix.
This is the 3x3 matrix M from the transform equation T=M*(O-V).
Reimplemented from csReversibleTransform.
Definition at line 765 of file transfrm.h.
virtual void csOrthoTransform::SetT2O | ( | const csMatrix3 & | m | ) | [inline, virtual] |
Set 'this' to 'other' transformation matrix.
This is equivalent to SetO2T() except that you can now give the inverse matrix.
Reimplemented from csReversibleTransform.
Definition at line 773 of file transfrm.h.