Public Member Functions | Static Public Member Functions
rtc::SMat4< T > Class Template Reference

#include <rtcSMat4.h>

Inheritance diagram for rtc::SMat4< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void set (const T x11, const T x12, const T x13, const T x14, const T x21, const T x22, const T x23, const T x24, const T x31, const T x32, const T x33, const T x34, const T x41, const T x42, const T x43, const T x44)
void setCols (const Vec4< T > &q0, const Vec4< T > &q1, const Vec4< T > &q2, const Vec4< T > &q3)
void setRows (const Vec4< T > &q0, const Vec4< T > &q1, const Vec4< T > &q2, const Vec4< T > &q3)
 SMat4 ()
 SMat4 (const T *d)
 SMat4 (const T diagVal)
 SMat4 (const Vec4< T > &diagVec)
 SMat4 (const Mat< T, 4, 4 > &m)
 SMat4 (const T x11, const T x12, const T x13, const T x14, const T x21, const T x22, const T x23, const T x24, const T x31, const T x32, const T x33, const T x34, const T x41, const T x42, const T x43, const T x44)
 SMat4 (const Vec4< T > &q0, const Vec4< T > &q1, const Vec4< T > &q2, const Vec4< T > &q3)
template<class U >
 SMat4 (const Mat< U, 4, 4 > &m)

Static Public Member Functions

static SMat4< T > fromCols (const Vec4< T > &q0, const Vec4< T > &q1, const Vec4< T > &q2, const Vec4< T > &q3)
static SMat4< T > fromRows (const Vec4< T > &q0, const Vec4< T > &q1, const Vec4< T > &q2, const Vec4< T > &q3)

Detailed Description

template<class T>
class rtc::SMat4< T >

A 4x4 matrix. A specialization of a square matrix.

Definition at line 40 of file rtcSMat4.h.


Constructor & Destructor Documentation

template<class T >
rtc::SMat4< T >::SMat4 ( ) [inline]

Ctor that doesn't initialize anything.

Definition at line 93 of file rtcSMat4.h.

template<class T>
rtc::SMat4< T >::SMat4 ( const T *  d) [inline]

Ctor that initializes from an array.

Parameters:
dthe (row major) data array of length 4

Definition at line 99 of file rtcSMat4.h.

template<class T>
rtc::SMat4< T >::SMat4 ( const T  diagVal) [inline]

Ctor that makes a multiple of the identity matrix.

Parameters:
diagValthe value to which all diagonal entries will be set

Definition at line 105 of file rtcSMat4.h.

template<class T>
rtc::SMat4< T >::SMat4 ( const Vec4< T > &  diagVec) [inline]

Ctor that makes a (mostly) zero matrix with diagonal entries from vec.

Parameters:
diagVecthe vector of values that should appear on the diagonal

Definition at line 111 of file rtcSMat4.h.

template<class T>
rtc::SMat4< T >::SMat4 ( const Mat< T, 4, 4 > &  m) [inline]

Ctor that initializes from a Mat<T,4,4>.

Definition at line 116 of file rtcSMat4.h.

template<class T>
rtc::SMat4< T >::SMat4 ( const T  x11,
const T  x12,
const T  x13,
const T  x14,
const T  x21,
const T  x22,
const T  x23,
const T  x24,
const T  x31,
const T  x32,
const T  x33,
const T  x34,
const T  x41,
const T  x42,
const T  x43,
const T  x44 
) [inline]

Ctor that initializes matrix entries directly.

Definition at line 121 of file rtcSMat4.h.

template<class T>
rtc::SMat4< T >::SMat4 ( const Vec4< T > &  q0,
const Vec4< T > &  q1,
const Vec4< T > &  q2,
const Vec4< T > &  q3 
) [inline]

Ctor that initializes matrix from columns.

Definition at line 134 of file rtcSMat4.h.

template<class T >
template<class U >
rtc::SMat4< T >::SMat4 ( const Mat< U, 4, 4 > &  m) [inline]

Casting Ctor that initializes from a Mat<U,4,4>

Definition at line 144 of file rtcSMat4.h.


Member Function Documentation

template<class T>
SMat4< T > rtc::SMat4< T >::fromCols ( const Vec4< T > &  q0,
const Vec4< T > &  q1,
const Vec4< T > &  q2,
const Vec4< T > &  q3 
) [inline, static]

Create matrix from columns.

Definition at line 161 of file rtcSMat4.h.

template<class T>
SMat4< T > rtc::SMat4< T >::fromRows ( const Vec4< T > &  q0,
const Vec4< T > &  q1,
const Vec4< T > &  q2,
const Vec4< T > &  q3 
) [inline, static]

Create matrix from rows.

Definition at line 151 of file rtcSMat4.h.

template<class T>
void rtc::SMat4< T >::set ( const T  x11,
const T  x12,
const T  x13,
const T  x14,
const T  x21,
const T  x22,
const T  x23,
const T  x24,
const T  x31,
const T  x32,
const T  x33,
const T  x34,
const T  x41,
const T  x42,
const T  x43,
const T  x44 
) [inline]

Set matrix given entries directly.

Definition at line 173 of file rtcSMat4.h.

template<class T>
void rtc::SMat4< T >::setCols ( const Vec4< T > &  q0,
const Vec4< T > &  q1,
const Vec4< T > &  q2,
const Vec4< T > &  q3 
) [inline]

Set matrix from columns.

Definition at line 194 of file rtcSMat4.h.

template<class T>
void rtc::SMat4< T >::setRows ( const Vec4< T > &  q0,
const Vec4< T > &  q1,
const Vec4< T > &  q2,
const Vec4< T > &  q3 
) [inline]

Set matrix from rows.

Definition at line 186 of file rtcSMat4.h.


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


rtc
Author(s): Benjamin Pitzer
autogenerated on Thu Jan 2 2014 11:04:54