shz_quat_init
SHZ_INLINE shz_quat_t shz_quat_init(float w, float x, float y, float z) SHZ_NOEXCEPT;Initializes and returns a new quaternion with the given components, in WXYZ order.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
w | float | |
x | float | |
y | float | |
z | float |
Returns
Section titled “Returns”shz_quat_t
Availability
Section titled “Availability”- C++ equivalent: none (call the C function from C++)
- Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:57 - Module: Quaternion, section "Initialization"