MaxstARSDK
gl_helper::Vec3 Class Reference

#include <vecmath.h>

Collaboration diagram for gl_helper::Vec3:
Collaboration graph

Public Member Functions

 Vec3 ()
 
 Vec3 (const float fX, const float fY, const float fZ)
 
 Vec3 (const Vec3 &vec)
 
 Vec3 (const float *pVec)
 
 Vec3 (const Vec2 &vec, float f)
 
bool operator< (const Vec3 &v) const
 
Vec3 operator* (const Vec3 &rhs) const
 
Vec3 operator/ (const Vec3 &rhs) const
 
Vec3 operator+ (const Vec3 &rhs) const
 
Vec3 operator- (const Vec3 &rhs) const
 
Vec3operator+= (const Vec3 &rhs)
 
Vec3operator-= (const Vec3 &rhs)
 
Vec3operator*= (const Vec3 &rhs)
 
Vec3operator/= (const Vec3 &rhs)
 
Vec3 operator* (const float &rhs) const
 
Vec3operator*= (const float &rhs)
 
Vec3 operator/ (const float &rhs) const
 
Vec3operator/= (const float &rhs)
 
bool operator== (const Vec3 &rhs) const
 
bool operator!= (const Vec3 &rhs) const
 
float Length () const
 
Vec3 Normalize ()
 
float Dot (const Vec3 &rhs)
 
float Distance (const Vec3 &rhs)
 
Vec3 Cross (const Vec3 &rhs)
 
bool Validate ()
 
void Value (float &fX, float &fY, float &fZ)
 
void Dump ()
 

Public Attributes

float x_
 
float y_
 
float z_
 

Friends

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

Constructor & Destructor Documentation

◆ Vec3() [1/5]

gl_helper::Vec3::Vec3 ( )
inline

◆ Vec3() [2/5]

gl_helper::Vec3::Vec3 ( const float  fX,
const float  fY,
const float  fZ 
)
inline

◆ Vec3() [3/5]

gl_helper::Vec3::Vec3 ( const Vec3 vec)
inline

◆ Vec3() [4/5]

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

◆ Vec3() [5/5]

gl_helper::Vec3::Vec3 ( const Vec2 vec,
float  f 
)
inline

Member Function Documentation

◆ Cross()

Vec3 gl_helper::Vec3::Cross ( const Vec3 rhs)
inline
Here is the caller graph for this function:

◆ Distance()

float gl_helper::Vec3::Distance ( const Vec3 rhs)
inline

◆ Dot()

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

◆ Dump()

void gl_helper::Vec3::Dump ( )
inline

◆ Length()

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

◆ Normalize()

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

◆ operator!=()

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=() [1/2]

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

◆ operator*=() [2/2]

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator-=()

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

◆ operator/() [1/2]

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

◆ operator/() [2/2]

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

◆ operator/=() [1/2]

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

◆ operator/=() [2/2]

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

◆ operator<()

bool gl_helper::Vec3::operator< ( const Vec3 v) const
inline

◆ operator==()

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

◆ Validate()

bool gl_helper::Vec3::Validate ( )
inline

◆ Value()

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

Friends And Related Function Documentation

◆ Mat3

friend class Mat3
friend

◆ Mat4

friend class Mat4
friend

◆ operator*

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

◆ operator-

Vec3 operator- ( const Vec3 rhs)
friend

◆ operator/

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

◆ Quaternion

friend class Quaternion
friend

◆ Vec4

friend class Vec4
friend

Member Data Documentation

◆ x_

float gl_helper::Vec3::x_

◆ y_

float gl_helper::Vec3::y_

◆ z_

float gl_helper::Vec3::z_

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