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

#include <shz_vector.h>

Inheritance diagram for shz_vec4_t:
Collaboration diagram for shz_vec4_t:

Data Fields

union { 
 
   float   e [4] 
 
   struct { 
 
      union { 
 
         struct { 
 
            float   x 
 
            float   y 
 
            float   z 
 
         }  
 
         shz_vec3_t   xyz 
 
      }  
 
      float   w 
 
   }  
 
   struct { 
 
      shz_vec2_t   xy 
 
      shz_vec2_t   zw 
 
   }  
 
};  
 

Detailed Description

4D Vector type

Structure for holding coordinates of a 4-dimensional vector.

See also
shz_vec2_t, shz_vec3_t

Definition at line 82 of file shz_vector.h.

Field Documentation

◆ e

float shz_vec4_t::e[4]

<X, Y, Z, W> coordinates as an array.

Definition at line 84 of file shz_vector.h.

◆ x

float shz_vec4_t::x

X coordinate.

Definition at line 88 of file shz_vector.h.

◆ y

float shz_vec4_t::y

Y coordinate.

Definition at line 89 of file shz_vector.h.

◆ z

float shz_vec4_t::z

Z coordinate.

Definition at line 90 of file shz_vector.h.

◆ xyz

shz_vec3_t shz_vec4_t::xyz

<X, Y, Z> coordinates as a 3D vector

Definition at line 92 of file shz_vector.h.

◆ w

float shz_vec4_t::w

W coordinate.

Definition at line 94 of file shz_vector.h.

◆ xy

shz_vec2_t shz_vec4_t::xy

<X, Y> coordinates as a 2D vector

Definition at line 97 of file shz_vector.h.

◆ zw

shz_vec2_t shz_vec4_t::zw

<Z, W> coordinates as a 2D vector

Definition at line 98 of file shz_vector.h.


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