Skip to content

shz_quat_store_wxyz

Markdown
SHZ_INLINE void shz_quat_store_wxyz(shz_quat_t quat, void* data) SHZ_NOEXCEPT;

Stores a shz_quat_t into a layout-compatible chunk of memory in WXYZ order.

NameTypeDescription
quatshz_quat_tshz_quat_t type to store into data.
datavoid *Memory chunk to store quat into.

Nothing (void).

  • This is a zero-overhead conversion, typically.
  • data must 4-byte aligned!
  • _wxyz: Register/column permutation so that FTRV yields W first (cycle 4 instead of 7), which helps perspective division. (Naming and Suffixes)

shz_quat_load_wxyz, shz_quat_store_xyzw