formZ SDK | 5.0 API Reference | System | Math

fz_math_4x4_mat_to_trl_scl_rot

Description

Breaks a 4x4 matrix into translation, scale and rotation parameters.
Note : rotation parameters are in the sequence z y x

Plugin Prototype

fzrt_error_td fz_math_4x4_mat_to_trl_scl_rot(

fz_mat4x4_td *

mat,

fz_xyz_td *

trl,

fz_xyz_td *

scl,

fz_xyz_td *

rot )

Parameters

mat [Input]

4x4 matrix

trl [Result, Optional]

translation

scl [Result, Optional]

scale

rot [Result, Optional]

rotation

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_matrix.fsl

See Also

fz_math_4x4_mat_from_trl_scl_rot, fz_math_3x3_mat_to_trl_scl_rot

Function Set

fz_math_fset


Defined in

fz_math_api.h