Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ultralight::vec4 Struct Reference

#include <Ultralight/Geometry.h>

Details

4D Vector Helper

Public Member Functions

 vec4 ()
 
 vec4 (float x, float y, float z, float w)
 
 vec4 (float x)
 
 vec4 (const float val[4])
 
vec4operator+= (const vec4 &rhs)
 
vec4operator-= (const vec4 &rhs)
 
vec4operator*= (const vec4 &rhs)
 
vec4operator/= (const vec4 &rhs)
 
vec4operator+= (float rhs)
 
vec4operator-= (float rhs)
 
vec4operator*= (float rhs)
 
vec4operator/= (float rhs)
 
void load (const float *val)
 
void store (float *val) const
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Friends

bool operator== (const vec4 &a, const vec4 &b)
 
bool operator!= (const vec4 &a, const vec4 &b)
 
vec4 operator+ (vec4 lhs, const vec4 &rhs)
 
vec4 operator- (vec4 lhs, const vec4 &rhs)
 
vec4 operator* (vec4 lhs, const vec4 &rhs)
 
vec4 operator/ (vec4 lhs, const vec4 &rhs)
 
vec4 operator+ (vec4 lhs, float rhs)
 
vec4 operator- (vec4 lhs, float rhs)
 
vec4 operator* (vec4 lhs, float rhs)
 
vec4 operator/ (vec4 lhs, float rhs)
 
vec4 min_ (const vec4 &a, const vec4 &b)
 
vec4 max_ (const vec4 &a, const vec4 &b)
 

Constructor & Destructor Documentation

◆ vec4() [1/4]

ultralight::vec4::vec4 ( )
inline

◆ vec4() [2/4]

ultralight::vec4::vec4 ( float  x,
float  y,
float  z,
float  w 
)
inline

◆ vec4() [3/4]

ultralight::vec4::vec4 ( float  x)
inline

◆ vec4() [4/4]

ultralight::vec4::vec4 ( const float  val[4])
inline

Member Function Documentation

◆ load()

void ultralight::vec4::load ( const float *  val)
inline

◆ operator*=() [1/2]

vec4 & ultralight::vec4::operator*= ( const vec4 rhs)
inline

◆ operator*=() [2/2]

vec4 & ultralight::vec4::operator*= ( float  rhs)
inline

◆ operator+=() [1/2]

vec4 & ultralight::vec4::operator+= ( const vec4 rhs)
inline

◆ operator+=() [2/2]

vec4 & ultralight::vec4::operator+= ( float  rhs)
inline

◆ operator-=() [1/2]

vec4 & ultralight::vec4::operator-= ( const vec4 rhs)
inline

◆ operator-=() [2/2]

vec4 & ultralight::vec4::operator-= ( float  rhs)
inline

◆ operator/=() [1/2]

vec4 & ultralight::vec4::operator/= ( const vec4 rhs)
inline

◆ operator/=() [2/2]

vec4 & ultralight::vec4::operator/= ( float  rhs)
inline

◆ store()

void ultralight::vec4::store ( float *  val) const
inline

Friends And Related Symbol Documentation

◆ max_

vec4 max_ ( const vec4 a,
const vec4 b 
)
friend

◆ min_

vec4 min_ ( const vec4 a,
const vec4 b 
)
friend

◆ operator!=

bool operator!= ( const vec4 a,
const vec4 b 
)
friend

◆ operator* [1/2]

vec4 operator* ( vec4  lhs,
const vec4 rhs 
)
friend

◆ operator* [2/2]

vec4 operator* ( vec4  lhs,
float  rhs 
)
friend

◆ operator+ [1/2]

vec4 operator+ ( vec4  lhs,
const vec4 rhs 
)
friend

◆ operator+ [2/2]

vec4 operator+ ( vec4  lhs,
float  rhs 
)
friend

◆ operator- [1/2]

vec4 operator- ( vec4  lhs,
const vec4 rhs 
)
friend

◆ operator- [2/2]

vec4 operator- ( vec4  lhs,
float  rhs 
)
friend

◆ operator/ [1/2]

vec4 operator/ ( vec4  lhs,
const vec4 rhs 
)
friend

◆ operator/ [2/2]

vec4 operator/ ( vec4  lhs,
float  rhs 
)
friend

◆ operator==

bool operator== ( const vec4 a,
const vec4 b 
)
friend

Member Data Documentation

◆ w

float ultralight::vec4::w

◆ x

float ultralight::vec4::x

◆ y

float ultralight::vec4::y

◆ z

float ultralight::vec4::z

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