shz_quat_load_xyzw
SHZ_INLINE shz_quat_t shz_quat_load_xyzw(const void* data) SHZ_NOEXCEPT;Loads a layout-compatible chunk of memory as a shz_quat_t in XYZW order.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
data | const void * | Memory chunk to be loaded as a shz_quat_t. |
Returns
Section titled “Returns”data loaded into a shz_quat_t.
- This is a zero-overhead conversion, typically.
Warnings
Section titled “Warnings”datamust be a 4-byte aligned set of 4 contiguous floats in-memory.
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::load_xyzw - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:462 - Module: Quaternion, section "Adapters"