Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::datatypes::Mat3x3 Struct Reference

Datatype: A 3x3 Matrix. More...

#include <rerun/datatypes/mat3x3.hpp>

Public Member Functions

 Mat3x3 (const Vec3D(&columns)[3])
 Creates a new 3x3 matrix from 3 columns of 3 elements each.
 
 Mat3x3 (const float *elements)
 Construct a new 3x3 matrix from a pointer to 9 floats (in column major order).
 
 Mat3x3 (std::array< float, 9 > flat_columns_)
 
Mat3x3operator= (std::array< float, 9 > flat_columns_)
 

Public Attributes

std::array< float, 9 > flat_columns
 Flat list of matrix coefficients in column-major order.
 

Static Public Attributes

static const Mat3x3 IDENTITY
 
static const Mat3x3 INVALID
 

Detailed Description

Datatype: A 3x3 Matrix.

Matrices in Rerun are stored as flat list of coefficients in column-major order:

column 0 column 1 column 2
-------------------------------------------------
row 0 | flat_columns[0] flat_columns[3] flat_columns[6]
row 1 | flat_columns[1] flat_columns[4] flat_columns[7]
row 2 | flat_columns[2] flat_columns[5] flat_columns[8]

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