shz_xmtrx_init_rotation_z_xy
SHZ_INLINE void shz_xmtrx_init_rotation_z_xy(float x, float y) SHZ_NOEXCEPT;Initializes XMTRX to the rotation about the Z axis that turns local +X toward the unit direction (x, y, 0).
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | float | X component of the unit direction. |
y | float | Y component of the unit direction. |
Returns
Section titled “Returns”Nothing (void).
Details
Section titled “Details”Equivalent to shz_xmtrx_init_rotation_z() for the angle whose sine is y and cosine is x.
Warnings
Section titled “Warnings”- (
x,y) must be unit length.
Availability
Section titled “Availability”- C++ equivalent:
shz::xmtrx::init_rotation_z_xy - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_xmtrx.h:391 - Module: XMTRX, section "Initialization"