Kohi Game Engine
vec2i_t Union Reference

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

#include <math_types.h>

Data Fields

i32 elements [2]
 An array of x, y. More...
 
struct {
   union {
      i32   x
 The first element. More...
 
      i32   r
 The first element. More...
 
      i32   s
 The first element. More...
 
      i32   u
 The first element. More...
 
   } 
 
   union {
      i32   y
 The second element. More...
 
      i32   g
 The second element. More...
 
      i32   t
 The second element. More...
 
      i32   v
 The second element. More...
 
   } 
 
}; 
 

Detailed Description

A 2-element integer-based vector.

Field Documentation

◆ 

struct { ... }

◆ elements

i32 elements[2]

An array of x, y.

◆ g

i32 g

The second element.

◆ r

i32 r

The first element.

◆ s

i32 s

The first element.

◆ t

i32 t

The second element.

◆ u

i32 u

The first element.

◆ v

i32 v

The second element.

◆ x

i32 x

The first element.

◆ y

i32 y

The second element.


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