The Nebula Device 3: Math::transform44 Class Reference

From 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 point & getposition () const
 get position
void setrotate (const quaternion &r)
 set rotate
const quaternion & getrotate () const
 get rotate
void setscale (const vector &s)
 set scale
const vector & getscale () const
 get scale
void setrotatepivot (const point &p)
 set optional rotate pivot
const point & getrotatepivot () const
 get optional rotate pivot
void setscalepivot (const point &p)
 set optional scale pivot
const point & getscalepivot () const
 get optional scale pivot
const matrix44 & getmatrix ()
 get resulting 4x4 matrix
bool isdirty () const
 return true if the transformation matrix is dirty