shz_xmtrx_rotate_dir
SHZ_INLINE void shz_xmtrx_rotate_dir(float radians, float x, float y, float z) SHZ_NOEXCEPT;Multiplies XMTRX by a 3D rotation matrix about a prenormalized axis.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
radians | float | Angle of rotation, in radians. |
x | float | X component of the unit axis of rotation. |
y | float | Y component of the unit axis of rotation. |
z | float | Z component of the unit axis of rotation. |
Returns
Section titled “Returns”Nothing (void).
Details
Section titled “Details”This is a faster version of shz_xmtrx_rotate() which skips normalizing the axis of rotation. Constructs a 4x4 rotation matrix of radians about the given axis, RIGHT multiplying it into XMTRX, leaving its translation column unmodified.
Warnings
Section titled “Warnings”- The vector components representing the axis of rotation must be prenormalized!
Availability
Section titled “Availability”- C++ equivalent: none (call the C function from C++)
- Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_xmtrx.h:841 - Module: XMTRX, section "GL Transformations"