Public Member Functions | Public Attributes | Friends
RaveTransformMatrix< T > Class Template Reference

affine transformation parameterized with rotation matrices More...

#include <math.h>

List of all members.

Public Member Functions

template<class U >
void Extract (RaveVector< U > &right, RaveVector< U > &up, RaveVector< U > &dir, RaveVector< U > &pos) const
void identity ()
RaveTransformMatrix< Tinverse () const
template<class U >
RaveVector< Toperator* (const RaveVector< U > &r) const
RaveTransformMatrix< Toperator* (const RaveTransformMatrix< T > &r) const
 t = this * r
RaveTransformMatrix< Toperator*= (const RaveTransformMatrix< T > &r) const
 RaveTransformMatrix ()
template<class U >
 RaveTransformMatrix (const RaveTransformMatrix< U > &t)
 RaveTransformMatrix (const RaveTransform< T > &t)
T rot (int i, int j) const
Trot (int i, int j)
template<class U >
RaveVector< U > rotate (const RaveVector< U > &r) const
template<class U >
void rotfromaxisangle (const RaveVector< U > &axis, U angle)
void rotfrommat (T m_00, T m_01, T m_02, T m_10, T m_11, T m_12, T m_20, T m_21, T m_22)
template<class U >
void rotfromquat (const RaveVector< U > &quat)

Public Attributes

T m [12]
RaveVector< Ttrans
 translation component

Friends

template<class S , class U >
std::basic_ostream< S > & operator<< (std::basic_ostream< S > &O, const RaveTransformMatrix< U > &v)
template<class S , class U >
std::basic_istream< S > & operator>> (std::basic_istream< S > &I, RaveTransformMatrix< U > &v)

Detailed Description

template<class T>
class RaveTransformMatrix< T >

affine transformation parameterized with rotation matrices

Definition at line 448 of file math.h.


Constructor & Destructor Documentation

template<class T>
RaveTransformMatrix< T >::RaveTransformMatrix ( ) [inline]

Definition at line 451 of file math.h.

template<class T>
template<class U >
RaveTransformMatrix< T >::RaveTransformMatrix ( const RaveTransformMatrix< U > &  t) [inline]

Definition at line 452 of file math.h.

template<class T>
RaveTransformMatrix< T >::RaveTransformMatrix ( const RaveTransform< T > &  t) [inline]

Definition at line 624 of file math.h.


Member Function Documentation

template<class T>
template<class U >
void RaveTransformMatrix< T >::Extract ( RaveVector< U > &  right,
RaveVector< U > &  up,
RaveVector< U > &  dir,
RaveVector< U > &  pos 
) const [inline]

Definition at line 554 of file math.h.

template<class T>
void RaveTransformMatrix< T >::identity ( ) [inline]

Definition at line 461 of file math.h.

template<class T>
RaveTransformMatrix<T> RaveTransformMatrix< T >::inverse ( ) const [inline]

Definition at line 546 of file math.h.

template<class T>
template<class U >
RaveVector<T> RaveTransformMatrix< T >::operator* ( const RaveVector< U > &  r) const [inline]

Definition at line 515 of file math.h.

template<class T>
RaveTransformMatrix<T> RaveTransformMatrix< T >::operator* ( const RaveTransformMatrix< T > &  r) const [inline]

t = this * r

Definition at line 524 of file math.h.

template<class T>
RaveTransformMatrix<T> RaveTransformMatrix< T >::operator*= ( const RaveTransformMatrix< T > &  r) const [inline]

Definition at line 533 of file math.h.

template<class T>
T RaveTransformMatrix< T >::rot ( int  i,
int  j 
) const [inline]

Definition at line 505 of file math.h.

template<class T>
T& RaveTransformMatrix< T >::rot ( int  i,
int  j 
) [inline]

Definition at line 509 of file math.h.

template<class T>
template<class U >
RaveVector<U> RaveTransformMatrix< T >::rotate ( const RaveVector< U > &  r) const [inline]

Definition at line 539 of file math.h.

template<class T>
template<class U >
void RaveTransformMatrix< T >::rotfromaxisangle ( const RaveVector< U > &  axis,
angle 
) [inline]

Definition at line 469 of file math.h.

template<class T>
void RaveTransformMatrix< T >::rotfrommat ( T  m_00,
T  m_01,
T  m_02,
T  m_10,
T  m_11,
T  m_12,
T  m_20,
T  m_21,
T  m_22 
) [inline]

Definition at line 499 of file math.h.

template<class T>
template<class U >
void RaveTransformMatrix< T >::rotfromquat ( const RaveVector< U > &  quat) [inline]

Definition at line 480 of file math.h.


Friends And Related Function Documentation

template<class T>
template<class S , class U >
std::basic_ostream<S>& operator<< ( std::basic_ostream< S > &  O,
const RaveTransformMatrix< U > &  v 
) [friend]
template<class T>
template<class S , class U >
std::basic_istream<S>& operator>> ( std::basic_istream< S > &  I,
RaveTransformMatrix< U > &  v 
) [friend]

Member Data Documentation

template<class T>
T RaveTransformMatrix< T >::m[12]

3x3 rotation matrix. Note that each row is 4 elements long! So row 1 starts at m[4], row 2 at m[8] The reason is to maintain 16 byte alignment when sizeof(T) is 4 bytes

Definition at line 566 of file math.h.

template<class T>
RaveVector<T> RaveTransformMatrix< T >::trans

translation component

Definition at line 567 of file math.h.


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


checkerboard_detector
Author(s): Rosen Diankov (rdiankov@cs.cmu.edu)
autogenerated on Sun Oct 8 2017 02:42:45