shz_xmtrx_init_rotation
SHZ_INLINE void shz_xmtrx_init_rotation(float angle, float xAxis, float yAxis, float zAxis) SHZ_NOEXCEPT;Initializes XMTRX to a 3D rotation matrix of angle radians about the vector with the given components.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
angle | float | |
xAxis | float | |
yAxis | float | |
zAxis | float |
Returns
Section titled “Returns”Nothing (void).
- This routine works similarly to glRotatef() applied to an identitiy matrix. The given axis will automatically be normalized internally.
Availability
Section titled “Availability”- C++ equivalent:
shz::xmtrx::init_rotation - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_xmtrx.h:318 - Module: XMTRX, section "Initialization"