Kohi Game Engine
vec3_u Union Reference

A 3-element vector. More...

#include <math_types.h>

Data Fields

f32 elements [3]
 An array of x, y, z. 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...
 
   } 
 
   union {
      f32   z
 The third element. More...
 
      f32   b
 The third element. More...
 
      f32   p
 The third element. More...
 
      f32   w
 The third element. More...
 
   } 
 
}; 
 

Detailed Description

A 3-element vector.

Field Documentation

◆ 

struct { ... }

◆ b

f32 b

The third element.

◆ elements

f32 elements[3]

An array of x, y, z.

◆ g

f32 g

The second element.

◆ p

f32 p

The third 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.

◆ w

f32 w

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: