Kohi Game Engine
vec3i_t Union Reference

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

#include <math_types.h>

Data Fields

i32 elements [3]
 An array of x, y, z. 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...
 
      } 
 
   } 
 
}; 
 

Detailed Description

A 3-element integer-based vector.

Field Documentation

◆ 

union { ... }

◆ b

i32 b

The third element.

◆ elements

i32 elements[3]

An array of x, y, z.

◆ g

i32 g

The third element.

◆ p

i32 p

The third element.

◆ r

i32 r

The first element.

◆ s

i32 s

The first element.

◆ t

i32 t

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: