version 3.3

VRS::Translation Class Reference

Translation. More...

#include <vrs/translation.h>

Inheritance diagram for VRS::Translation:

VRS::Transform VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 Translation (const Vector &trans=Vector(0, 0, 0))
 Translation (double tx, double ty, double tz)
bool operator== (const Translation &other) const
void setTranslate (const Vector &v)
Vector getTranslate () const
 set/get the Vector which defines the translation
virtual const Matrixmatrix (Engine *engine=0) const
 returns the translation-matrix
 VRS_TYPEINFO (Translation, Transform)
 VRS_SERIALIZABLE (Translation)


Detailed Description

Translation.

Constructor & Destructor Documentation

VRS::Translation::Translation ( const Vector trans = Vector(0, 0, 0)  ) 

VRS::Translation::Translation ( double  tx,
double  ty,
double  tz 
)

A translation matrix. The upper left 3x3 part is the identity, the Vector at the right of the matrix specifies the translation.


Member Function Documentation

bool VRS::Translation::operator== ( const Translation other  )  const

void VRS::Translation::setTranslate ( const Vector v  ) 

Vector VRS::Translation::getTranslate (  )  const [inline]

set/get the Vector which defines the translation

virtual const Matrix& VRS::Translation::matrix ( Engine engine = 0  )  const [virtual]

returns the translation-matrix

Implements VRS::Transform.

VRS::Translation::VRS_TYPEINFO ( Translation  ,
Transform   
)

VRS::Translation::VRS_SERIALIZABLE ( Translation   ) 


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

Generated on Wed May 23 06:00:31 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact