Kohi Game Engine
vec2_u Union Reference

A 2-element vector. More...

#include <math_types.h>

Data Fields

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

Detailed Description

A 2-element vector.

Field Documentation

◆ 

struct { ... }

◆ elements

f32 elements[2]

An array of x, y.

◆ g

f32 g

The second element.

◆ r

f32 r

The first element.

◆ s

f32 s

The first element.

◆ t

f32 t

The second element.

◆ u

f32 u

The first element.

◆ v

f32 v

The second element.

◆ x

f32 x

The first element.

◆ y

f32 y

The second element.


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