#include <Common.h>
4 x 4 double matrix
More...
|
| 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.
|
|
Mat4 | inverse () |
| Inverse of matrix. More...
|
|
|
static Mat4 | fromEuler (double rx, double ry, double rz) |
| Convert Euler angles in degrees to a homogeneous transformation matrix. More...
|
|
◆ Mat4()
Mat4 |
( |
double * |
data = 0 | ) |
|
Construct matrix.
- Parameters
-
data | Optional pointer to data buffer in column-major-order from which to initialize the matrix. |
◆ operator()() [1/2]
double& operator() |
( |
int |
r, |
|
|
int |
c |
|
) |
| |
Get reference to matrix element at given position.
- Parameters
-
- Returns
- Matrix element at given position
◆ operator()() [2/2]
double operator() |
( |
int |
r, |
|
|
int |
c |
|
) |
| const |
Get matrix element at given position.
- Parameters
-
- Returns
- Matrix element at given position
◆ operator*()
Mat4 operator* |
( |
const Mat4 & |
other | ) |
const |
Matrix product A*B.
- Parameters
-
- Returns
- Matrix A*B
◆ fromEuler()
static 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
◆ inverse()
Inverse of matrix.
- Returns
- Matrix inverse
The documentation for this class was generated from the following file:
- E:/BuildAgent/work/97cc5eac790048b1/RecFusionSDK/include/Common.h