Loading...
Searching...
No Matches
vec4

#include <Ultralight/Geometry.h>

Overview

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]

vec4 ( )
inline

◆ vec4() [2/4]

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

◆ vec4() [3/4]

vec4 ( float x)
inline

◆ vec4() [4/4]

vec4 ( const float val[4])
inline

Member Function Documentation

◆ load()

void load ( const float * val)
inline

◆ operator*=() [1/2]

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

◆ operator*=() [2/2]

vec4 & operator*= ( float rhs)
inline

◆ operator+=() [1/2]

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

◆ operator+=() [2/2]

vec4 & operator+= ( float rhs)
inline

◆ operator-=() [1/2]

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

◆ operator-=() [2/2]

vec4 & operator-= ( float rhs)
inline

◆ operator/=() [1/2]

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

◆ operator/=() [2/2]

vec4 & operator/= ( float rhs)
inline

◆ store()

void 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 w

◆ x

float x

◆ y

float y

◆ z

float z

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