SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Decompose()

template<Precision P = Precision::Default>
void SRL::Math::Types::Matrix43::Decompose ( Vector3D & scale,
Vector3D & rotation,
Vector3D & translation ) const
inlineconstexpr

Extracts scale, rotation, and translation components.

This method decomposes the transformation matrix into its constituent components: scale, rotation, and translation. The extracted values can be used for further processing or analysis of the transformation.

Template Parameters
PPrecision level for calculation, allowing users to choose the desired precision for the calculations.
Parameters
scaleOutput parameter for the scale vector.
rotationOutput parameter for the rotation angles (X=pitch, Y=yaw, Z=roll).
translationOutput parameter for the translation vector.
Note
The method assumes that the input matrix is a valid transformation matrix. Ensure that the matrix has not been skewed or sheared, as this may affect the accuracy of the extracted values.