formZ SDK | 5.0 API Reference | System | Math

fz_math_4x4_set_rot_mat

Description

Initializes a 4x4 matrix to a rotation matrix. Rotates around the x, y or z axis at a given angle in radians.

Plugin Prototype

fzrt_error_td fz_math_4x4_set_rot_mat(

fz_mat4x4_td *

mat,

double

angle,

fz_axis_enum

which_axis )

Parameters

mat [Input, Result]

4x4 matrix

angle [Input]

rotation angle in radians

which_axis [Input]

axis to rotate matrix about

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_matrix.fsl

See Also

, fz_math_4x4_set_trl_mat, FZ_MATH_DEG_2_RAD

Function Set

fz_math_fset


Defined in

fz_math_api.h