Skip to content

shz_quat_load_wxyz

Markdown
SHZ_INLINE shz_quat_t shz_quat_load_wxyz(const void* data) SHZ_NOEXCEPT;

Loads a layout-compatible chunk of memory as a shz_quat_t in WXYZ order.

NameTypeDescription
dataconst void *Memory chunk to be loaded as a shz_quat_t.

data loaded into a shz_quat_t.

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

shz_quat_store_wxyz, shz_quat_load_xyzw