The Nebula Device 3: Math::transform44 Class Reference

The Nebula Device 3

Math::transform44 Class Reference

#include <transform44.h>


Detailed Description

A 4x4 matrix which is described by translation, rotation and scale.

(C) 2004 RadonLabs GmbH

Public Member Functions

 transform44 ()
 constructor
void setposition (const point &p)
 set position
const pointgetposition () const
 get position
void setrotate (const quaternion &r)
 set rotate
const quaterniongetrotate () const
 get rotate
void setscale (const vector &s)
 set scale
const vectorgetscale () const
 get scale
void setrotatepivot (const point &p)
 set optional rotate pivot
const pointgetrotatepivot () const
 get optional rotate pivot
void setscalepivot (const point &p)
 set optional scale pivot
const pointgetscalepivot () const
 get optional scale pivot
const matrix44getmatrix ()
 get resulting 4x4 matrix
bool isdirty () const
 return true if the transformation matrix is dirty