Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
fireworks::maths::vec4 Struct Reference

#include <vec4.h>

Public Member Functions

 vec4 ()=default
 
 vec4 (const float &x, const float &y, const float &z, const float &w)
 
vec4add (const vec4 &other)
 
vec4subtract (const vec4 &other)
 
vec4mutiply (const vec4 &other)
 
vec4divide (const vec4 &other)
 
bool operator== (const vec4 &other)
 
bool operator!= (const vec4 &other)
 
vec4operator+= (const vec4 &other)
 
vec4operator-= (const vec4 &other)
 
vec4operator*= (const vec4 &other)
 
vec4operator/= (const vec4 &other)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Friends

vec4 operator+ (vec4 left, const vec4 &right)
 
vec4 operator- (vec4 left, const vec4 &right)
 
vec4 operator* (vec4 left, const vec4 &right)
 
vec4 operator/ (vec4 left, const vec4 &right)
 
std::ostream & operator<< (std::ostream &stream, const vec4 &vector)
 

Constructor & Destructor Documentation

◆ vec4() [1/2]

fireworks::maths::vec4::vec4 ( )
default

◆ vec4() [2/2]

fireworks::maths::vec4::vec4 ( const float &  x,
const float &  y,
const float &  z,
const float &  w 
)

Member Function Documentation

◆ add()

vec4 & fireworks::maths::vec4::add ( const vec4 other)

◆ divide()

vec4 & fireworks::maths::vec4::divide ( const vec4 other)

◆ mutiply()

vec4 & fireworks::maths::vec4::mutiply ( const vec4 other)

◆ operator!=()

bool fireworks::maths::vec4::operator!= ( const vec4 other)

◆ operator*=()

vec4 & fireworks::maths::vec4::operator*= ( const vec4 other)

◆ operator+=()

vec4 & fireworks::maths::vec4::operator+= ( const vec4 other)

◆ operator-=()

vec4 & fireworks::maths::vec4::operator-= ( const vec4 other)

◆ operator/=()

vec4 & fireworks::maths::vec4::operator/= ( const vec4 other)

◆ operator==()

bool fireworks::maths::vec4::operator== ( const vec4 other)

◆ subtract()

vec4 & fireworks::maths::vec4::subtract ( const vec4 other)

Friends And Related Function Documentation

◆ operator*

vec4 operator* ( vec4  left,
const vec4 right 
)
friend

◆ operator+

vec4 operator+ ( vec4  left,
const vec4 right 
)
friend

◆ operator-

vec4 operator- ( vec4  left,
const vec4 right 
)
friend

◆ operator/

vec4 operator/ ( vec4  left,
const vec4 right 
)
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const vec4 vector 
)
friend

Member Data Documentation

◆ w

float fireworks::maths::vec4::w

◆ x

float fireworks::maths::vec4::x

◆ y

float fireworks::maths::vec4::y

◆ z

float fireworks::maths::vec4::z

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