formZ SDK | 5.0 API Reference | System | Math

fz_math_4x4_mat_from_trl_scl_rot

Description

Create a complete transformation 4x4 matrix consisting of translation, scale and rotation components.
These components are executed in the order :
1. scale
2. rotation
3. translation
This is the inverse operation of fz_math_4x4_mat_to_trl_scl_rot.

Plugin Prototype

fzrt_error_td fz_math_4x4_mat_from_trl_scl_rot(

fz_xyz_td *

trl,

fz_xyz_td *

scl,

fz_xyz_td *

rot,

fz_mat4x4_td *

mat )

Parameters

trl [Input, Optional]

translation

Default Value: identity matrix

scl [Input, Optional]

scale

Default Value: identity matrix

rot [Input, Optional]

rotation

Default Value: identity matrix

mat [Result]

4x4 transformation matrix

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_matrix.fsl

See Also

fz_math_4x4_mat_to_trl_scl_rot

Function Set

fz_math_fset


Defined in

fz_math_api.h