Kohi Game Engine
vec4_u Union Reference

A 4-element vector. More...

#include <math_types.h>

Data Fields

f32 elements [4]
 An array of x, y, z, w. More...
 
union {
   struct {
      union {
         f32   x
 The first element. More...
 
         f32   r
 The first element. More...
 
         f32   s
 The first element. More...
 
      } 
 
      union {
         f32   y
 The second element. More...
 
         f32   g
 The third element. More...
 
         f32   t
 The third element. More...
 
      } 
 
      union {
         f32   z
 The third element. More...
 
         f32   b
 The third element. More...
 
         f32   p
 The third element. More...
 
         f32   width
 The third element. More...
 
      } 
 
      union {
         f32   w
 The fourth element. More...
 
         f32   a
 The fourth element. More...
 
         f32   q
 The fourth element. More...
 
         f32   height
 The fourth element. More...
 
      } 
 
   } 
 
}; 
 

Detailed Description

A 4-element vector.

Field Documentation

◆ 

union { ... }

◆ a

f32 a

The fourth element.

◆ b

f32 b

The third element.

◆ elements

f32 elements[4]

An array of x, y, z, w.

◆ g

f32 g

The third element.

◆ height

f32 height

The fourth element.

◆ p

f32 p

The third element.

◆ q

f32 q

The fourth element.

◆ r

f32 r

The first element.

◆ s

f32 s

The first element.

◆ t

f32 t

The third element.

◆ w

f32 w

The fourth element.

◆ width

f32 width

The third element.

◆ x

f32 x

The first element.

◆ y

f32 y

The second element.

◆ z

f32 z

The third element.


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