 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

## ◆ Mat4()

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

Construct matrix.

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

## ◆ fromEuler()

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

Convert Euler angles in degrees to a homogeneous transformation matrix.

Parameters
 rx Rotation around x-axis in degrees ry Rotation around y-axis in degrees rz Rotation 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
 r Row index c Column 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
 r Row index c Column index
Returns
Matrix element at given position

## ◆ operator*()

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

Matrix product A*B.

Parameters
 other matrix B
Returns
Matrix A*B

The documentation for this class was generated from the following file:
• include/Common.h