matrix33 Class Reference

#include <matrix33.h>

List of all members.


Detailed Description

A generic matrix33 class.

Public Member Functions

 matrix33 ()
 matrix33 (const matrix33 &mx)
 matrix33 (const vector3 &v0, const vector3 &v1, const vector3 &v2)
 matrix33 (float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
void set (const matrix33 &m1)
void set (const vector3 &v0, const vector3 &v1, const vector3 &v2)
void set (float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
void operator *= (const matrix33 &m1)
void ident ()
void lookat (const vector3 &from, const vector3 &to, const vector3 &up)
void billboard (const vector3 &from, const vector3 &to, const vector3 &up)
void transpose ()
bool orthonorm (float limit)
void scale (const vector3 &s)
void rotate_x (const float a)
void rotate_y (const float a)
void rotate_z (const float a)
void rotate_local_x (const float a)
void rotate_local_y (const float a)
void rotate_local_z (const float a)
void rotate (const vector3 &vec, float a)
vector3 x_component (void) const
vector3 y_component (void) const
vector3 z_component (void) const
void mult (const vector3 &src, vector3 &dst) const
void translate (const vector2 &t)

Public Attributes

float m [3][3]

Constructor & Destructor Documentation

matrix33::matrix33 (  )  [inline]

Contructor.

matrix33::matrix33 ( const matrix33 m1  )  [inline]

Contructor.

matrix33::matrix33 ( const vector3 v0,
const vector3 v1,
const vector3 v2 
) [inline]

Contructor.

matrix33::matrix33 ( float  m11,
float  m12,
float  m13,
float  m21,
float  m22,
float  m23,
float  m31,
float  m32,
float  m33 
) [inline]

Contructor.


Member Function Documentation

void matrix33::set ( const matrix33 m1  )  [inline]

Sets new values.

void matrix33::set ( const vector3 v0,
const vector3 v1,
const vector3 v2 
) [inline]

Sets new values.

void matrix33::set ( float  m11,
float  m12,
float  m13,
float  m21,
float  m22,
float  m23,
float  m31,
float  m32,
float  m33 
) [inline]

Sets new values.

void matrix33::operator *= ( const matrix33 m1  )  [inline]

void matrix33::ident (  )  [inline]

void matrix33::lookat ( const vector3 from,
const vector3 to,
const vector3 up 
) [inline]

Unrestricted lookat.

void matrix33::billboard ( const vector3 from,
const vector3 to,
const vector3 up 
) [inline]

Restricted lookat (billboard).

void matrix33::transpose (  )  [inline]

Sets to transpose.

bool matrix33::orthonorm ( float  limit  )  [inline]

Is orthonormal?

void matrix33::scale ( const vector3 s  )  [inline]

Scales.

void matrix33::rotate_x ( const float  a  )  [inline]

Rotates about global X.

void matrix33::rotate_y ( const float  a  )  [inline]

Rotates about global Y.

void matrix33::rotate_z ( const float  a  )  [inline]

Rotates about global Z.

void matrix33::rotate_local_x ( const float  a  )  [inline]

Rotates about local X (not very fast).

void matrix33::rotate_local_y ( const float  a  )  [inline]

Rotates about local Y (not very fast).

void matrix33::rotate_local_z ( const float  a  )  [inline]

Rotates about local Z (not very fast).

void matrix33::rotate ( const vector3 vec,
float  a 
) [inline]

Rotates about any axis.

vector3 matrix33::x_component ( void   )  const [inline]

Gets X component.

vector3 matrix33::y_component ( void   )  const [inline]

Gets Y component.

vector3 matrix33::z_component ( void   )  const [inline]

Gets Z component.

void matrix33::mult ( const vector3 src,
vector3 dst 
) const [inline]

Multiplies source vector with matrix and store in destination vector this eliminates the construction of a temp vector3 object

void matrix33::translate ( const vector2 t  )  [inline]

Translate, this treats the matrix as a 2x2 rotation + translate matrix.


Member Data Documentation

float matrix33::m[3][3]


The documentation for this class was generated from the following file:
Generated on Sat Oct 20 14:47:33 2007 for Dark Oberon by  doxygen 1.5.3