![]() |
SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
|
#include <shz_quat.h>


Data Fields | ||
| union { | ||
| struct { | ||
| float w | ||
| union { | ||
| struct { | ||
| float x | ||
| float y | ||
| float z | ||
| } | ||
| shz_vec3_t axis | ||
| } | ||
| } | ||
| float e [4] | ||
| }; | ||
Represents a 3D quaternion.
Quaternions are a mathematical structure representing a rotation about a single arbitrary axis.
Definition at line 39 of file shz_quat.h.
| float shz_quat_t::w |
< Anonymous structure with named components.
Scalar component/real part of quaternion.
Definition at line 42 of file shz_quat.h.
| float shz_quat_t::x |
X component of axis of rotation (imaginary)
Definition at line 45 of file shz_quat.h.
| float shz_quat_t::y |
Y component of axis of rotation (imaginary)
Definition at line 46 of file shz_quat.h.
| float shz_quat_t::z |
Z component of axis of rotation (imaginary)
Definition at line 47 of file shz_quat.h.
| shz_vec3_t shz_quat_t::axis |
3D vector representing axis of rotation
Definition at line 49 of file shz_quat.h.
| float shz_quat_t::e[4] |
Array-indexed components.
Definition at line 52 of file shz_quat.h.