[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Matrix3 Class Reference

general : Matrix3 is a class for handling 3x3 Matrix manipulation. More...

#include <Matrix3.h>

List of all members.

Public Member Functions

 Matrix3 ()
 default constructor : initialise to zero
 Matrix3 (const Matrix3 &ot)
 copy constructor
void SetIdentity ()
 Set the identity matrix.
void SetRotation (double Yaw, double Pitch, double Roll)
 Set the matrice to rotation using yaw, pitch, roll angle.
void SetRotationPT (double yaw, double pitch, double roll)
 set rotation in panotools style, code adapted from Panotools-Script by Bruno Postle
void GetRotationPT (double &Yaw, double &Pitch, double &Roll)
 GetRotation in panotools style.
void SetRotationX (double a)
 set the matrice to rotation around X
void SetRotationY (double a)
void SetRotationZ (double a)
Matrix3operator= (const Matrix3 &ot)
 copy operator
Matrix3 operator * (const Matrix3 &ot) const
 multiplication with another matrix
void operator/= (double s)
 operator *=
void operator *= (double s)
 operator *=
void operator *= (Matrix3 ot)
 operator *=
bool operator== (Matrix3 &ot) const
 comparison
bool operator!= (Matrix3 &ot) const
 comparison
Matrix3 Transpose ()
 retrieves transpose
double Determinant () const
 get the determinant
Vector3 TransformVector (const Vector3 &V) const
 transforms a vector
Matrix3 Inverse () const
 return inverse if it exists, otherwise identity
void Print (std::ostream &o) const

Public Attributes

double m [3][3]
 we define the Matrix3 as 3 colums of 3 rows

Static Public Attributes

Matrix3 Identity = getIdentity()


Detailed Description

general : Matrix3 is a class for handling 3x3 Matrix manipulation.

We do not use 4x4 matrix for view point changement as the calculus could be inefficent (some of the coefficients are null, m14 = m24 = m34 = 0 et m44 = 1.0 always).


Constructor & Destructor Documentation

Matrix3::Matrix3  ) 
 

default constructor : initialise to zero

Matrix3::Matrix3 const Matrix3 ot  ) 
 

copy constructor


Member Function Documentation

double Matrix3::Determinant  )  const [inline]
 

get the determinant

void Matrix3::GetRotationPT double Yaw,
double Pitch,
double Roll
 

GetRotation in panotools style.

Matrix3 Matrix3::Inverse  )  const
 

return inverse if it exists, otherwise identity

Matrix3 Matrix3::operator * const Matrix3 ot  )  const
 

multiplication with another matrix

void Matrix3::operator *= Matrix3  ot  ) 
 

operator *=

void Matrix3::operator *= double  s  ) 
 

operator *=

bool Matrix3::operator!= Matrix3 ot  )  const [inline]
 

comparison

void Matrix3::operator/= double  s  ) 
 

operator *=

Matrix3 & Matrix3::operator= const Matrix3 ot  ) 
 

copy operator

bool Matrix3::operator== Matrix3 ot  )  const [inline]
 

comparison

void Matrix3::Print std::ostream &  o  )  const
 

void Matrix3::SetIdentity  ) 
 

Set the identity matrix.

void Matrix3::SetRotation double  Yaw,
double  Pitch,
double  Roll
 

Set the matrice to rotation using yaw, pitch, roll angle.

void Matrix3::SetRotationPT double  yaw,
double  pitch,
double  roll
 

set rotation in panotools style, code adapted from Panotools-Script by Bruno Postle

void Matrix3::SetRotationX double  a  ) 
 

set the matrice to rotation around X

void Matrix3::SetRotationY double  a  ) 
 

void Matrix3::SetRotationZ double  a  ) 
 

Vector3 Matrix3::TransformVector const Vector3 V  )  const [inline]
 

transforms a vector

Matrix3 Matrix3::Transpose  )  [inline]
 

retrieves transpose


Member Data Documentation

Matrix3 Matrix3::Identity = getIdentity() [static]
 

double Matrix3::m[3][3]
 

we define the Matrix3 as 3 colums of 3 rows


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

Generated on Mon Sep 20 01:01:34 2010 for Hugintrunk by doxygen 1.3.9.1