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
-
P | Precision level for calculation, allowing users to choose the desired precision for the calculations. |
- Parameters
-
scale | Output parameter for the scale vector. |
rotation | Output parameter for the rotation angles (X=pitch, Y=yaw, Z=roll). |
translation | Output 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.