PRSMatrixData< VECTORTYPE > Struct Template Reference

#include <matrix_prs.h>

Detailed Description

template<typename VECTORTYPE>
struct maxon::PRSMatrixData< VECTORTYPE >

Helper type for decomposed Matrix. Also includes shear calculation.

Public Member Functions

Mat3< VECTORTYPE > GetMatrix () const
 
void SetMatrix (const Mat3< VECTORTYPE > &matrix, ROTATIONORDER order=DEFAULT_ORDER)
 
 MAXON_OPERATOR_STRUCT (PRSMatrixData< VECTORTYPE >, position, rotation, scale, shear, order)
 

Static Public Member Functions

static PRSMatrixData< VECTORTYPE > FromMatrix (const Mat3< VECTORTYPE > &matrix, ROTATIONORDER order=DEFAULT_ORDER)
 

Public Attributes

VECTORTYPE position
 
VECTORTYPE rotation
 
VECTORTYPE scale
 
VECTORTYPE shear
 
ROTATIONORDER order
 

Static Public Attributes

static constexpr ROTATIONORDER DEFAULT_ORDER
 

Member Function Documentation

◆ GetMatrix()

Mat3<VECTORTYPE> GetMatrix ( ) const

Return a Matrix formed with the PRSMatrix decomposed members.

Returns
The resulting Matrix.

◆ SetMatrix()

void SetMatrix ( const Mat3< VECTORTYPE > &  matrix,
ROTATIONORDER  order = DEFAULT_ORDER 
)

Sets the PRSMatrix internal members using the supplied #matrix and order.

◆ FromMatrix()

static PRSMatrixData<VECTORTYPE> FromMatrix ( const Mat3< VECTORTYPE > &  matrix,
ROTATIONORDER  order = DEFAULT_ORDER 
)
static
See also
SetMatrix. Resulting PRSMatrix will be returned.

◆ MAXON_OPERATOR_STRUCT()

MAXON_OPERATOR_STRUCT ( PRSMatrixData< VECTORTYPE >  ,
position  ,
rotation  ,
scale  ,
shear  ,
order   
)

Member Data Documentation

◆ DEFAULT_ORDER

constexpr ROTATIONORDER DEFAULT_ORDER
staticconstexpr

◆ position

VECTORTYPE position

The position.

◆ rotation

VECTORTYPE rotation

The rotation.

◆ scale

VECTORTYPE scale

The scale.

◆ shear

VECTORTYPE shear

The shear.

◆ order

The order.