CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csOrthoTransform Class Reference
[Geometry utilities]

A class which defines a reversible transformation from one coordinate system to another by maintaining an inverse transformation matrix. More...

#include <transfrm.h>

Inheritance diagram for csOrthoTransform:

csReversibleTransform csTransform csCamera List of all members.

Public Methods

 csOrthoTransform ()
 Initialize with the identity transformation. More...

 csOrthoTransform (const csMatrix3 &o2t, const csVector3 &pos)
 Initialize with the given transformation. More...

 csOrthoTransform (const csTransform &t)
 Initialize with the given transformation. More...

virtual void SetO2T (const csMatrix3 &m)
 Set 'other' to 'this' transformation matrix. More...

virtual void SetT2O (const csMatrix3 &m)
 Set 'this' to 'other' transformation matrix. More...


Detailed Description

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 576 of file transfrm.h.


Constructor & Destructor Documentation

csOrthoTransform::csOrthoTransform   [inline]
 

Initialize with the identity transformation.

Definition at line 582 of file transfrm.h.

csOrthoTransform::csOrthoTransform const csMatrix3   o2t,
const csVector3   pos
[inline]
 

Initialize with the given transformation.

Definition at line 587 of file transfrm.h.

csOrthoTransform::csOrthoTransform const csTransform   t [inline]
 

Initialize with the given transformation.

Definition at line 593 of file transfrm.h.

References csTransform::GetO2T, and csTransform::GetO2TTranslation.


Member Function Documentation

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.

Reimplemented in csCamera.

Definition at line 602 of file transfrm.h.

References csMatrix3::GetTranspose, csTransform::m_o2t, and csReversibleTransform::m_t2o.

Referenced by csCamera::SetO2T.

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.

Reimplemented in csCamera.

Definition at line 610 of file transfrm.h.

References csMatrix3::GetTranspose, csTransform::m_o2t, and csReversibleTransform::m_t2o.

Referenced by csCamera::SetT2O.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14