Kohi Game Engine
vec4i_t Union Reference

A 4-element integer-based vector. More...

#include <math_types.h>

Data Fields

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

Detailed Description

A 4-element integer-based vector.

Field Documentation

◆ 

union { ... }

◆ a

i32 a

The fourth element.

◆ b

i32 b

The third element.

◆ elements

i32 elements[4]

An array of x, y, z, w.

◆ g

i32 g

The third element.

◆ height

i32 height

The fourth element.

◆ p

i32 p

The third element.

◆ q

i32 q

The fourth element.

◆ r

i32 r

The first element.

◆ s

i32 s

The first element.

◆ t

i32 t

The third element.

◆ w

i32 w

The fourth element.

◆ width

i32 width

The third element.

◆ x

i32 x

The first element.

◆ y

i32 y

The second element.

◆ z

i32 z

The third element.


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