RecFusion SDK
RecFusion::Mat3 Class Reference

3 x 3 double matrix More...

Public Member Functions

 Mat3 (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...
 
Mat3 operator* (const Mat3 &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.
 

Detailed Description

3 x 3 double matrix

Constructor & Destructor Documentation

◆ Mat3()

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

Construct matrix.

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

Member Function Documentation

◆ operator()() [1/2]

double& RecFusion::Mat3::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::Mat3::operator() ( int  r,
int  c 
) const

Get matrix element at given position.

Parameters
rRow index
cColumn index
Returns
Matrix element at given position

◆ operator*()

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

Matrix product A*B.

Parameters
othermatrix B
Returns
Matrix A*B

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