ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
Loading...
Searching...
No Matches
vec3 Union Reference

Three-component single-precision vector. Component layout matches GLSL vec3. More...

#include <Mathlib.h>

Data Fields

float xyz [3]
 Array accessor.
 
struct { 
 
   float   x 
 
   float   y 
 
   float   z 
 
};  
 Component accessors.
 
vec2 xy
 Swizzle to vec2.
 

Detailed Description

Three-component single-precision vector. Component layout matches GLSL vec3.

.xy is a swizzle to vec2.

Field Documentation

◆ [struct]

struct { ... } vec3

Component accessors.

◆ x

float vec3::x

◆ xy

vec2 vec3::xy

Swizzle to vec2.

◆ xyz

float vec3::xyz[3]

Array accessor.

◆ y

float vec3::y

◆ z

float vec3::z

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