RecFusion SDK
RecFusion::Mat4 Class Reference

4 x 4 double matrix More...

Public Member Functions

 Mat4 (double *data=0)
 Construct matrix. More...
 
double & operator() (int r, int c)
 Get reference to matrix element at given position. More...
 
double operator() (int r, int c) const
 Get matrix element at given position. More...
 
Mat4 operator* (const Mat4 &other) const
 Matrix product A*B. More...
 
double * data ()
 Get pointer to matrix data. Data is organized in column-major-order.
 
const double * data () const
 Get const pointer to matrix data. Data is organized in column-major-order.
 

Static Public Member Functions

static Mat4 fromEuler (double rx, double ry, double rz)
 Convert Euler angles in degrees to a homogeneous transformation matrix. More...
 

Detailed Description

4 x 4 double matrix

Constructor & Destructor Documentation

◆ Mat4()

RecFusion::Mat4::Mat4 ( double *  data = 0)

Construct matrix.

Parameters
dataOptional pointer to data buffer in column-major-order from which to initialize the matrix.

Member Function Documentation

◆ fromEuler()

static Mat4 RecFusion::Mat4::fromEuler ( double  rx,
double  ry,
double  rz 
)
static

Convert Euler angles in degrees to a homogeneous transformation matrix.

Parameters
rxRotation around x-axis in degrees
ryRotation around y-axis in degrees
rzRotation around z-axis in degrees
Returns
Matrix corresponding to rotation angles

◆ operator()() [1/2]

double& RecFusion::Mat4::operator() ( int  r,
int  c 
)

Get reference to matrix element at given position.

Parameters
rRow index
cColumn index
Returns
Matrix element at given position

◆ operator()() [2/2]

double RecFusion::Mat4::operator() ( int  r,
int  c 
) const

Get matrix element at given position.

Parameters
rRow index
cColumn index
Returns
Matrix element at given position

◆ operator*()

Mat4 RecFusion::Mat4::operator* ( const Mat4 other) const

Matrix product A*B.

Parameters
othermatrix B
Returns
Matrix A*B

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