MaxstARSDK
gl_helper::Vec4 Class Reference

#include <vecmath.h>

Collaboration diagram for gl_helper::Vec4:
Collaboration graph

Public Member Functions

 Vec4 ()
 
 Vec4 (const float fX, const float fY, const float fZ, const float fW)
 
 Vec4 (const Vec4 &vec)
 
 Vec4 (const Vec3 &vec, const float fW)
 
 Vec4 (const float *pVec)
 
Vec4 operator* (const Vec4 &rhs) const
 
Vec4 operator/ (const Vec4 &rhs) const
 
Vec4 operator+ (const Vec4 &rhs) const
 
Vec4 operator- (const Vec4 &rhs) const
 
Vec4operator+= (const Vec4 &rhs)
 
Vec4operator-= (const Vec4 &rhs)
 
Vec4operator*= (const Vec4 &rhs)
 
Vec4operator/= (const Vec4 &rhs)
 
Vec4 operator* (const float &rhs) const
 
Vec4operator*= (const float &rhs)
 
Vec4 operator/ (const float &rhs) const
 
Vec4operator/= (const float &rhs)
 
bool operator== (const Vec4 &rhs) const
 
bool operator!= (const Vec4 &rhs) const
 
float Length () const
 
Vec4 Normalize ()
 
float Dot (const Vec3 &rhs)
 
Vec3 Cross (const Vec3 &rhs)
 
bool Validate ()
 
void Value (float &fX, float &fY, float &fZ, float &fW)
 

Public Attributes

float x_
 
float y_
 
float z_
 
float w_
 

Friends

class Vec3
 
class Mat4
 
class Quaternion
 
Vec4 operator- (const Vec4 &rhs)
 
Vec4 operator* (const float lhs, const Vec4 &rhs)
 
Vec4 operator/ (const float lhs, const Vec4 &rhs)
 

Constructor & Destructor Documentation

◆ Vec4() [1/5]

gl_helper::Vec4::Vec4 ( )
inline

◆ Vec4() [2/5]

gl_helper::Vec4::Vec4 ( const float  fX,
const float  fY,
const float  fZ,
const float  fW 
)
inline

◆ Vec4() [3/5]

gl_helper::Vec4::Vec4 ( const Vec4 vec)
inline

◆ Vec4() [4/5]

gl_helper::Vec4::Vec4 ( const Vec3 vec,
const float  fW 
)
inline

◆ Vec4() [5/5]

gl_helper::Vec4::Vec4 ( const float *  pVec)
inline

Member Function Documentation

◆ Cross()

Vec3 gl_helper::Vec4::Cross ( const Vec3 rhs)
inline

◆ Dot()

float gl_helper::Vec4::Dot ( const Vec3 rhs)
inline

◆ Length()

float gl_helper::Vec4::Length ( ) const
inline

◆ Normalize()

Vec4 gl_helper::Vec4::Normalize ( )
inline
Here is the call graph for this function:

◆ operator!=()

bool gl_helper::Vec4::operator!= ( const Vec4 rhs) const
inline

◆ operator*() [1/2]

Vec4 gl_helper::Vec4::operator* ( const Vec4 rhs) const
inline

◆ operator*() [2/2]

Vec4 gl_helper::Vec4::operator* ( const float &  rhs) const
inline

◆ operator*=() [1/2]

Vec4& gl_helper::Vec4::operator*= ( const Vec4 rhs)
inline

◆ operator*=() [2/2]

Vec4& gl_helper::Vec4::operator*= ( const float &  rhs)
inline

◆ operator+()

Vec4 gl_helper::Vec4::operator+ ( const Vec4 rhs) const
inline

◆ operator+=()

Vec4& gl_helper::Vec4::operator+= ( const Vec4 rhs)
inline

◆ operator-()

Vec4 gl_helper::Vec4::operator- ( const Vec4 rhs) const
inline

◆ operator-=()

Vec4& gl_helper::Vec4::operator-= ( const Vec4 rhs)
inline

◆ operator/() [1/2]

Vec4 gl_helper::Vec4::operator/ ( const Vec4 rhs) const
inline

◆ operator/() [2/2]

Vec4 gl_helper::Vec4::operator/ ( const float &  rhs) const
inline

◆ operator/=() [1/2]

Vec4& gl_helper::Vec4::operator/= ( const Vec4 rhs)
inline

◆ operator/=() [2/2]

Vec4& gl_helper::Vec4::operator/= ( const float &  rhs)
inline

◆ operator==()

bool gl_helper::Vec4::operator== ( const Vec4 rhs) const
inline

◆ Validate()

bool gl_helper::Vec4::Validate ( )
inline

◆ Value()

void gl_helper::Vec4::Value ( float &  fX,
float &  fY,
float &  fZ,
float &  fW 
)
inline

Friends And Related Function Documentation

◆ Mat4

friend class Mat4
friend

◆ operator*

Vec4 operator* ( const float  lhs,
const Vec4 rhs 
)
friend

◆ operator-

Vec4 operator- ( const Vec4 rhs)
friend

◆ operator/

Vec4 operator/ ( const float  lhs,
const Vec4 rhs 
)
friend

◆ Quaternion

friend class Quaternion
friend

◆ Vec3

friend class Vec3
friend

Member Data Documentation

◆ w_

float gl_helper::Vec4::w_

◆ x_

float gl_helper::Vec4::x_

◆ y_

float gl_helper::Vec4::y_

◆ z_

float gl_helper::Vec4::z_

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