RoboidControl
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Passer::LinearAlgebra::MatrixOf< T > Class Template Reference

Single precision float matrix. More...

#include <Matrix.h>

Public Member Functions

 MatrixOf (unsigned int rows, unsigned int cols)
 
 MatrixOf (unsigned int rows, unsigned int cols, const T *source)
 
 MatrixOf (Vector3 v)
 
 ~MatrixOf ()
 
void Transpose (MatrixOf< T > *r) const
 Transpose with result in matrix m.
 
void Multiply (const MatrixOf< T > *m, MatrixOf< T > *r) const
 
Vector3 operator* (const Vector3 v) const
 
T Get (unsigned int rowIx, unsigned int colIx) const
 
void Set (unsigned int rowIx, unsigned int colIx, T value)
 
void Set (const T *source)
 
void SetRow (unsigned int rowIx, const T *source)
 
void SetCol (unsigned int colIx, const T *source)
 
void CopyFrom (const MatrixOf< T > *m)
 
unsigned int RowCount () const
 
unsigned int ColCount () const
 

Static Public Member Functions

static void Multiply (const MatrixOf< T > *m1, const MatrixOf< T > *m2, MatrixOf< T > *r)
 
static Vector3 Multiply (const MatrixOf< T > *m, Vector3 v)
 

Detailed Description

template<typename T>
class Passer::LinearAlgebra::MatrixOf< T >

Single precision float matrix.

Constructor & Destructor Documentation

◆ MatrixOf() [1/3]

◆ MatrixOf() [2/3]

template<typename T >
Passer::LinearAlgebra::MatrixOf< T >::MatrixOf ( unsigned int  rows,
unsigned int  cols,
const T source 
)
inline

◆ MatrixOf() [3/3]

◆ ~MatrixOf()

template<typename T >
Passer::LinearAlgebra::MatrixOf< T >::~MatrixOf ( )
inline

Member Function Documentation

◆ Transpose()

template<typename T >
void Passer::LinearAlgebra::MatrixOf< T >::Transpose ( MatrixOf< T > *  r) const
inline

Transpose with result in matrix m.

Parameters
rThe matrix in which the transposed matrix is stored

◆ Multiply() [1/3]

template<typename T >
static void Passer::LinearAlgebra::MatrixOf< T >::Multiply ( const MatrixOf< T > *  m1,
const MatrixOf< T > *  m2,
MatrixOf< T > *  r 
)
static

◆ Multiply() [2/3]

template<typename T >
void Passer::LinearAlgebra::MatrixOf< T >::Multiply ( const MatrixOf< T > *  m,
MatrixOf< T > *  r 
) const
inline

◆ Multiply() [3/3]

template<typename T >
static Vector3 Passer::LinearAlgebra::MatrixOf< T >::Multiply ( const MatrixOf< T > *  m,
Vector3  v 
)
static

◆ operator*()

template<typename T >
Vector3 MatrixOf::operator* ( const Vector3  v) const

◆ Get()

template<typename T >
T Passer::LinearAlgebra::MatrixOf< T >::Get ( unsigned int  rowIx,
unsigned int  colIx 
) const
inline

◆ Set() [1/2]

template<typename T >
void Passer::LinearAlgebra::MatrixOf< T >::Set ( unsigned int  rowIx,
unsigned int  colIx,
T  value 
)
inline

◆ Set() [2/2]

template<typename T >
void Passer::LinearAlgebra::MatrixOf< T >::Set ( const T source)
inline

◆ SetRow()

template<typename T >
void Passer::LinearAlgebra::MatrixOf< T >::SetRow ( unsigned int  rowIx,
const T source 
)
inline

◆ SetCol()

template<typename T >
void Passer::LinearAlgebra::MatrixOf< T >::SetCol ( unsigned int  colIx,
const T source 
)
inline

◆ CopyFrom()

template<typename T >
void Passer::LinearAlgebra::MatrixOf< T >::CopyFrom ( const MatrixOf< T > *  m)
inline

◆ RowCount()

template<typename T >
unsigned int Passer::LinearAlgebra::MatrixOf< T >::RowCount ( ) const
inline

◆ ColCount()

template<typename T >
unsigned int Passer::LinearAlgebra::MatrixOf< T >::ColCount ( ) const
inline

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