Voltray Engine Docs
Loading...
Searching...
No Matches
Vec4 Struct Reference

#include <Vec4.h>

Public Member Functions

 Vec4 ()
 
 Vec4 (float x, float y, float z, float w)
 
 Vec4 (const Vec4 &other)
 
Vec4operator= (const Vec4 &other)
 
Vec4 operator+ (const Vec4 &other) const
 
Vec4 operator- (const Vec4 &other) const
 
Vec4 operator* (float scalar) const
 
Vec4 operator/ (float scalar) const
 
Vec4operator+= (const Vec4 &other)
 
Vec4operator-= (const Vec4 &other)
 
Vec4operator*= (float scalar)
 
Vec4operator/= (float scalar)
 
bool operator== (const Vec4 &other) const
 
bool operator!= (const Vec4 &other) const
 
Vec4 operator- () const
 
Vec4 operator* (const Vec4 &other) const
 
float length () const
 
float lengthSquared () const
 
Vec4 normalized () const
 
void normalize ()
 
float dot (const Vec4 &other) const
 
Vec2 xx () const
 
Vec2 xy () const
 
Vec2 xz () const
 
Vec2 xw () const
 
Vec2 yx () const
 
Vec2 yy () const
 
Vec2 yz () const
 
Vec2 yw () const
 
Vec2 zx () const
 
Vec2 zy () const
 
Vec2 zz () const
 
Vec2 zw () const
 
Vec2 wx () const
 
Vec2 wy () const
 
Vec2 wz () const
 
Vec2 ww () const
 
Vec3 xxx () const
 
Vec3 xxy () const
 
Vec3 xxz () const
 
Vec3 xxw () const
 
Vec3 xyx () const
 
Vec3 xyy () const
 
Vec3 xyz () const
 
Vec3 xyw () const
 
Vec3 xzx () const
 
Vec3 xzy () const
 
Vec3 xzz () const
 
Vec3 xzw () const
 
Vec3 xwx () const
 
Vec3 xwy () const
 
Vec3 xwz () const
 
Vec3 xww () const
 
Vec3 yxx () const
 
Vec3 yxy () const
 
Vec3 yxz () const
 
Vec3 yxw () const
 
Vec3 yyx () const
 
Vec3 yyy () const
 
Vec3 yyz () const
 
Vec3 yyw () const
 
Vec3 yzx () const
 
Vec3 yzy () const
 
Vec3 yzz () const
 
Vec3 yzw () const
 
Vec3 ywx () const
 
Vec3 ywy () const
 
Vec3 ywz () const
 
Vec3 yww () const
 
Vec3 zxx () const
 
Vec3 zxy () const
 
Vec3 zxz () const
 
Vec3 zxw () const
 
Vec3 zyx () const
 
Vec3 zyy () const
 
Vec3 zyz () const
 
Vec3 zyw () const
 
Vec3 zzx () const
 
Vec3 zzy () const
 
Vec3 zzz () const
 
Vec3 zzw () const
 
Vec3 zwx () const
 
Vec3 zwy () const
 
Vec3 zwz () const
 
Vec3 zww () const
 
Vec3 wxx () const
 
Vec3 wxy () const
 
Vec3 wxz () const
 
Vec3 wxw () const
 
Vec3 wyx () const
 
Vec3 wyy () const
 
Vec3 wyz () const
 
Vec3 wyw () const
 
Vec3 wzx () const
 
Vec3 wzy () const
 
Vec3 wzz () const
 
Vec3 wzw () const
 
Vec3 wwx () const
 
Vec3 wwy () const
 
Vec3 wwz () const
 
Vec3 www () const
 
float & operator[] (int index)
 
const float & operator[] (int index) const
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Constructor & Destructor Documentation

◆ Vec4() [1/3]

Vec4::Vec4 ( )

◆ Vec4() [2/3]

Vec4::Vec4 ( float  x,
float  y,
float  z,
float  w 
)

◆ Vec4() [3/3]

Vec4::Vec4 ( const Vec4 other)

Member Function Documentation

◆ dot()

float Vec4::dot ( const Vec4 other) const

◆ length()

float Vec4::length ( ) const

◆ lengthSquared()

float Vec4::lengthSquared ( ) const

◆ normalize()

void Vec4::normalize ( )

◆ normalized()

Vec4 Vec4::normalized ( ) const

◆ operator!=()

bool Vec4::operator!= ( const Vec4 other) const

◆ operator*() [1/2]

Vec4 Vec4::operator* ( const Vec4 other) const
inline

◆ operator*() [2/2]

Vec4 Vec4::operator* ( float  scalar) const

◆ operator*=()

Vec4 & Vec4::operator*= ( float  scalar)

◆ operator+()

Vec4 Vec4::operator+ ( const Vec4 other) const

◆ operator+=()

Vec4 & Vec4::operator+= ( const Vec4 other)

◆ operator-() [1/2]

Vec4 Vec4::operator- ( ) const
inline

◆ operator-() [2/2]

Vec4 Vec4::operator- ( const Vec4 other) const

◆ operator-=()

Vec4 & Vec4::operator-= ( const Vec4 other)

◆ operator/()

Vec4 Vec4::operator/ ( float  scalar) const

◆ operator/=()

Vec4 & Vec4::operator/= ( float  scalar)

◆ operator=()

Vec4 & Vec4::operator= ( const Vec4 other)

◆ operator==()

bool Vec4::operator== ( const Vec4 other) const

◆ operator[]() [1/2]

float & Vec4::operator[] ( int  index)

◆ operator[]() [2/2]

const float & Vec4::operator[] ( int  index) const

◆ ww()

Vec2 Vec4::ww ( ) const
inline

◆ www()

Vec3 Vec4::www ( ) const
inline

◆ wwx()

Vec3 Vec4::wwx ( ) const
inline

◆ wwy()

Vec3 Vec4::wwy ( ) const
inline

◆ wwz()

Vec3 Vec4::wwz ( ) const
inline

◆ wx()

Vec2 Vec4::wx ( ) const
inline

◆ wxw()

Vec3 Vec4::wxw ( ) const
inline

◆ wxx()

Vec3 Vec4::wxx ( ) const
inline

◆ wxy()

Vec3 Vec4::wxy ( ) const
inline

◆ wxz()

Vec3 Vec4::wxz ( ) const
inline

◆ wy()

Vec2 Vec4::wy ( ) const
inline

◆ wyw()

Vec3 Vec4::wyw ( ) const
inline

◆ wyx()

Vec3 Vec4::wyx ( ) const
inline

◆ wyy()

Vec3 Vec4::wyy ( ) const
inline

◆ wyz()

Vec3 Vec4::wyz ( ) const
inline

◆ wz()

Vec2 Vec4::wz ( ) const
inline

◆ wzw()

Vec3 Vec4::wzw ( ) const
inline

◆ wzx()

Vec3 Vec4::wzx ( ) const
inline

◆ wzy()

Vec3 Vec4::wzy ( ) const
inline

◆ wzz()

Vec3 Vec4::wzz ( ) const
inline

◆ xw()

Vec2 Vec4::xw ( ) const
inline

◆ xww()

Vec3 Vec4::xww ( ) const
inline

◆ xwx()

Vec3 Vec4::xwx ( ) const
inline

◆ xwy()

Vec3 Vec4::xwy ( ) const
inline

◆ xwz()

Vec3 Vec4::xwz ( ) const
inline

◆ xx()

Vec2 Vec4::xx ( ) const
inline

◆ xxw()

Vec3 Vec4::xxw ( ) const
inline

◆ xxx()

Vec3 Vec4::xxx ( ) const
inline

◆ xxy()

Vec3 Vec4::xxy ( ) const
inline

◆ xxz()

Vec3 Vec4::xxz ( ) const
inline

◆ xy()

Vec2 Vec4::xy ( ) const
inline

◆ xyw()

Vec3 Vec4::xyw ( ) const
inline

◆ xyx()

Vec3 Vec4::xyx ( ) const
inline

◆ xyy()

Vec3 Vec4::xyy ( ) const
inline

◆ xyz()

Vec3 Vec4::xyz ( ) const
inline

◆ xz()

Vec2 Vec4::xz ( ) const
inline

◆ xzw()

Vec3 Vec4::xzw ( ) const
inline

◆ xzx()

Vec3 Vec4::xzx ( ) const
inline

◆ xzy()

Vec3 Vec4::xzy ( ) const
inline

◆ xzz()

Vec3 Vec4::xzz ( ) const
inline

◆ yw()

Vec2 Vec4::yw ( ) const
inline

◆ yww()

Vec3 Vec4::yww ( ) const
inline

◆ ywx()

Vec3 Vec4::ywx ( ) const
inline

◆ ywy()

Vec3 Vec4::ywy ( ) const
inline

◆ ywz()

Vec3 Vec4::ywz ( ) const
inline

◆ yx()

Vec2 Vec4::yx ( ) const
inline

◆ yxw()

Vec3 Vec4::yxw ( ) const
inline

◆ yxx()

Vec3 Vec4::yxx ( ) const
inline

◆ yxy()

Vec3 Vec4::yxy ( ) const
inline

◆ yxz()

Vec3 Vec4::yxz ( ) const
inline

◆ yy()

Vec2 Vec4::yy ( ) const
inline

◆ yyw()

Vec3 Vec4::yyw ( ) const
inline

◆ yyx()

Vec3 Vec4::yyx ( ) const
inline

◆ yyy()

Vec3 Vec4::yyy ( ) const
inline

◆ yyz()

Vec3 Vec4::yyz ( ) const
inline

◆ yz()

Vec2 Vec4::yz ( ) const
inline

◆ yzw()

Vec3 Vec4::yzw ( ) const
inline

◆ yzx()

Vec3 Vec4::yzx ( ) const
inline

◆ yzy()

Vec3 Vec4::yzy ( ) const
inline

◆ yzz()

Vec3 Vec4::yzz ( ) const
inline

◆ zw()

Vec2 Vec4::zw ( ) const
inline

◆ zww()

Vec3 Vec4::zww ( ) const
inline

◆ zwx()

Vec3 Vec4::zwx ( ) const
inline

◆ zwy()

Vec3 Vec4::zwy ( ) const
inline

◆ zwz()

Vec3 Vec4::zwz ( ) const
inline

◆ zx()

Vec2 Vec4::zx ( ) const
inline

◆ zxw()

Vec3 Vec4::zxw ( ) const
inline

◆ zxx()

Vec3 Vec4::zxx ( ) const
inline

◆ zxy()

Vec3 Vec4::zxy ( ) const
inline

◆ zxz()

Vec3 Vec4::zxz ( ) const
inline

◆ zy()

Vec2 Vec4::zy ( ) const
inline

◆ zyw()

Vec3 Vec4::zyw ( ) const
inline

◆ zyx()

Vec3 Vec4::zyx ( ) const
inline

◆ zyy()

Vec3 Vec4::zyy ( ) const
inline

◆ zyz()

Vec3 Vec4::zyz ( ) const
inline

◆ zz()

Vec2 Vec4::zz ( ) const
inline

◆ zzw()

Vec3 Vec4::zzw ( ) const
inline

◆ zzx()

Vec3 Vec4::zzx ( ) const
inline

◆ zzy()

Vec3 Vec4::zzy ( ) const
inline

◆ zzz()

Vec3 Vec4::zzz ( ) const
inline

Member Data Documentation

◆ w

float Vec4::w

◆ x

float Vec4::x

◆ y

float Vec4::y

◆ z

float Vec4::z

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