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

Two-component single-precision vector. Component layout matches GLSL vec2. More...

#include <Mathlib.h>

Data Fields

float xy [2]
 Array accessor.
 
struct { 
 
   float   x 
 
   float   y 
 
};  
 Component accessors.
 

Detailed Description

Two-component single-precision vector. Component layout matches GLSL vec2.

Field Documentation

◆ [struct]

struct { ... } vec2

Component accessors.

◆ x

float vec2::x

◆ xy

float vec2::xy[2]

Array accessor.

◆ y

float vec2::y

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