cf_m4_rotate¶
Category: math
GitHub: cute_math3d.h
Builds a matrix rotating about an arbitrary axis.
CF_M4x4 cf_m4_rotate(CF_V3 axis, float radians) { return cf_quat_to_m4(cf_quat_from_axis_angle(axis, radians)); }
| Parameters | Description |
|---|---|
axis |
The axis to rotate about. Should be unit length. |
radians |
The rotation angle. |
Related Pages¶
CF_M4x4
cf_m4_rotate_x
cf_m4_rotate_y
cf_m4_rotate_z
cf_quat_to_m4