Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
csOrthoTransform Class Reference

#include <optransfrm.h>

Inheritance diagram for csOrthoTransform:
csReversibleTransform csTransform

Public Member Functions

 csOrthoTransform ()
 
 csOrthoTransform (const csMatrix3 &o2t, const csVector3 &pos)
 
 csOrthoTransform (const csTransform &t)
 
virtual void SetO2T (const csMatrix3 &m)
 
virtual void SetT2O (const csMatrix3 &m)
 
- Public Member Functions inherited from csReversibleTransform
 csReversibleTransform ()
 
 csReversibleTransform (const Matrix &m)
 
 csReversibleTransform (const csMatrix3 &o2t, const csVector3 &pos)
 
 csReversibleTransform (const csTransform &t)
 
 csReversibleTransform (const csReversibleTransform &t)
 
const csMatrix3GetT2O () const
 
csVector3 GetT2OTranslation () const
 
csReversibleTransform GetInverse () const
 
csVector3 This2Other (const csVector3 &v) const
 
csVector3 This2OtherRelative (const csVector3 &v) const
 
void RotateOther (const csVector3 &v, float angle)
 
void RotateThis (const csVector3 &v, float angle)
 
void RotateOther (const csMatrix3 &m)
 
void RotateThis (const csMatrix3 &m)
 
void LookAt (const csVector3 &v, const csVector3 &up)
 
- Public Member Functions inherited from csTransform
 csTransform ()
 
 csTransform (const csMatrix3 &other2this, const csVector3 &origin_pos)
 
const csMatrix3GetO2T () const
 
const csVector3GetO2TTranslation () const
 
const csVector3GetOrigin () const
 
virtual void SetO2TTranslation (const csVector3 &v)
 
void SetOrigin (const csVector3 &v)
 
void Translate (const csVector3 &v)
 
csVector3 Other2This (const csVector3 &v) const
 
csVector3 Other2ThisRelative (const csVector3 &v) const
 

Additional Inherited Members

- Protected Member Functions inherited from csReversibleTransform
 csReversibleTransform (const csMatrix3 &o2t, const csMatrix3 &t2o, const csVector3 &pos)
 
- Protected Attributes inherited from csReversibleTransform
csMatrix3 m_t2o
 Inverse transformation matrix ('this' to 'other' space). 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 361 of file optransfrm.h.

Constructor & Destructor Documentation

csOrthoTransform::csOrthoTransform ( )
inline

Initialize with the identity transformation.

Definition at line 367 of file optransfrm.h.

367 : csReversibleTransform () {}
csOrthoTransform::csOrthoTransform ( const csMatrix3 o2t,
const csVector3 pos 
)
inline

Initialize with the given transformation.

Definition at line 372 of file optransfrm.h.

372  :
373  csReversibleTransform (o2t, o2t.GetTranspose (), pos) { }
csOrthoTransform::csOrthoTransform ( const csTransform t)
inline

Initialize with the given transformation.

Definition at line 378 of file optransfrm.h.

378  :

Member Function Documentation

virtual void csOrthoTransform::SetO2T ( const csMatrix3 m)
inlinevirtual

Set 'other' to 'this' transformation matrix.

Reimplemented from csReversibleTransform.

Definition at line 384 of file optransfrm.h.

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

385  { m_o2t = m; m_t2o = m_o2t.GetTranspose (); }
virtual void csOrthoTransform::SetT2O ( const csMatrix3 m)
inlinevirtual

Set 'this' to 'other' transformation matrix.

Reimplemented from csReversibleTransform.

Definition at line 390 of file optransfrm.h.

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

391  { m_t2o = m; m_o2t = m_t2o.GetTranspose (); }

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