SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
Loading...
Searching...
No Matches
shz_quat_t Struct Reference

#include <shz_quat.h>

Inheritance diagram for shz_quat_t:
Collaboration diagram for shz_quat_t:

Data Fields

union { 
 
   struct { 
 
      float   w 
 
      union { 
 
         struct { 
 
            float   x 
 
            float   y 
 
            float   z 
 
         }  
 
         shz_vec3_t   axis 
 
      }  
 
   }  
 
   float   e [4] 
 
};  
 

Detailed Description

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.

Field Documentation

◆ w

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.

◆ x

float shz_quat_t::x

X component of axis of rotation (imaginary)

Definition at line 45 of file shz_quat.h.

◆ y

float shz_quat_t::y

Y component of axis of rotation (imaginary)

Definition at line 46 of file shz_quat.h.

◆ z

float shz_quat_t::z

Z component of axis of rotation (imaginary)

Definition at line 47 of file shz_quat.h.

◆ axis

shz_vec3_t shz_quat_t::axis

3D vector representing axis of rotation

Definition at line 49 of file shz_quat.h.

◆ e

float shz_quat_t::e[4]

Array-indexed components.

Definition at line 52 of file shz_quat.h.


The documentation for this struct was generated from the following file: