Public Member Functions | Public Attributes

m3x3< Real > Class Template Reference

#include <m3x3.h>

List of all members.

Public Member Functions

 m3x3 ()
 m3x3 (const m3x3< Real > &mat)
 m3x3 (const Real a, const Real b, const Real c, const Real d, const Real e, const Real f, const Real g, const Real h, const Real i)
m3x3< Real > & zero (void)
m3x3< Real > & identity (void)
m3x3< Real > & transpose (void)
m3x3< Real > & invert (void)
m3x3< Real > & set (const Real a, const Real b, const Real c, const Real d, const Real e, const Real f, const Real g, const Real h, const Real i)
m3x3< Real > & get (Real &a, Real &b, Real &c, Real &d, Real &e, Real &f, Real &g, Real &h, Real &i)
m3x3< Real > & asRotationX (const Real angle)
m3x3< Real > & asRotationY (const Real angle)
m3x3< Real > & asRotationZ (const Real angle)
m3x3< Real > & asRotation (const Real x, const Real y, const Real z)
m3x3< Real > & asScale (const Real x, const Real y, const Real z)
m3x3< Real > & scale (const Real x, const Real y, const Real z)
m3x3< Real > & operator= (const m3x3< Real > &a)
m3x3< Real > & operator+= (const m3x3< Real > &a)
m3x3< Real > & operator-= (const m3x3< Real > &a)
m3x3< Real > & operator*= (const m3x3< Real > &a)
bool operator== (const m3x3< Real > &a)
bool operator!= (const m3x3< Real > &a)
Real * operator[] (const unsigned char i)
const Real * operator[] (const unsigned char i) const
Real & operator() (const unsigned char i)
const Real operator() (const unsigned char i) const
Real & operator() (const unsigned char i, const unsigned char j)
const Real operator() (const unsigned char i, const unsigned char j) const

Public Attributes

union {
   struct {
      Real   m [3][3]
   } 
   struct {
      Real   m9 [9]
   } 
}; 

Detailed Description

template<typename Real = RV_PRECISSION_TYPENAME>
class m3x3< Real >

3x3 Real matrix. This class can be used to define 3D rotations.

Definition at line 5 of file m3x3.h.


Constructor & Destructor Documentation

template<typename Real = RV_PRECISSION_TYPENAME>
m3x3< Real >::m3x3 (  )  [inline]

Default construktor. This construktor does not initialize the class with values.

Definition at line 15 of file m3x3.h.

template<typename Real = RV_PRECISSION_TYPENAME>
m3x3< Real >::m3x3 ( const m3x3< Real > &  mat  )  [inline]

Copy construktor. Copy an existing class. The copied class does not have the same memory as the class that was copied. Only the values are copied.

Definition at line 21 of file m3x3.h.

template<typename Real = RV_PRECISSION_TYPENAME>
m3x3< Real >::m3x3 ( const Real  a,
const Real  b,
const Real  c,
const Real  d,
const Real  e,
const Real  f,
const Real  g,
const Real  h,
const Real  i 
) [inline]

Construktor. Initialize the class with the defined values.

Definition at line 29 of file m3x3.h.


Member Function Documentation

template<typename Real >
m3x3< Real > & m3x3< Real >::asRotation ( const Real  x,
const Real  y,
const Real  z 
) [inline]

Definition at line 40 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::asRotationX ( const Real  angle  )  [inline]

Definition at line 7 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::asRotationY ( const Real  angle  )  [inline]

Definition at line 18 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::asRotationZ ( const Real  angle  )  [inline]

Definition at line 29 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::asScale ( const Real  x,
const Real  y,
const Real  z 
) [inline]

Definition at line 60 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::get ( Real &  a,
Real &  b,
Real &  c,
Real &  d,
Real &  e,
Real &  f,
Real &  g,
Real &  h,
Real &  i 
) [inline]

Definition at line 123 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::identity ( void   )  [inline]

Definition at line 86 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::invert ( void   )  [inline]

Definition at line 95 of file m3x3.inl.

template<typename Real >
bool m3x3< Real >::operator!= ( const m3x3< Real > &  a  )  [inline]

Definition at line 179 of file m3x3.inl.

template<typename Real >
Real & m3x3< Real >::operator() ( const unsigned char  i,
const unsigned char  j 
) [inline]

Definition at line 211 of file m3x3.inl.

template<typename Real >
Real & m3x3< Real >::operator() ( const unsigned char  i  )  [inline]

Definition at line 199 of file m3x3.inl.

template<typename Real >
const Real m3x3< Real >::operator() ( const unsigned char  i  )  const [inline]

Definition at line 205 of file m3x3.inl.

template<typename Real >
const Real m3x3< Real >::operator() ( const unsigned char  i,
const unsigned char  j 
) const [inline]

Definition at line 218 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::operator*= ( const m3x3< Real > &  a  )  [inline]

Definition at line 165 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::operator+= ( const m3x3< Real > &  a  )  [inline]

Definition at line 147 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::operator-= ( const m3x3< Real > &  a  )  [inline]

Definition at line 156 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::operator= ( const m3x3< Real > &  a  )  [inline]

Definition at line 139 of file m3x3.inl.

template<typename Real >
bool m3x3< Real >::operator== ( const m3x3< Real > &  a  )  [inline]

Definition at line 171 of file m3x3.inl.

template<typename Real >
const Real * m3x3< Real >::operator[] ( const unsigned char  i  )  const [inline]

Definition at line 193 of file m3x3.inl.

template<typename Real >
Real * m3x3< Real >::operator[] ( const unsigned char  i  )  [inline]

Definition at line 187 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::scale ( const Real  x,
const Real  y,
const Real  z 
) [inline]

Definition at line 69 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::set ( const Real  a,
const Real  b,
const Real  c,
const Real  d,
const Real  e,
const Real  f,
const Real  g,
const Real  h,
const Real  i 
) [inline]

Definition at line 111 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::transpose ( void   )  [inline]

Definition at line 101 of file m3x3.inl.

template<typename Real >
m3x3< Real > & m3x3< Real >::zero ( void   )  [inline]

Definition at line 78 of file m3x3.inl.


Member Data Documentation

union { ... }
template<typename Real = RV_PRECISSION_TYPENAME>
Real m3x3< Real >::m[3][3]

Definition at line 8 of file m3x3.h.

template<typename Real = RV_PRECISSION_TYPENAME>
Real m3x3< Real >::m9[9]

Definition at line 9 of file m3x3.h.


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