MaxstARSDK
gl_helper::Vec2 Class Reference

#include <vecmath.h>

Collaboration diagram for gl_helper::Vec2:
Collaboration graph

Public Member Functions

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

Public Attributes

float x_
 
float y_
 

Friends

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

Constructor & Destructor Documentation

◆ Vec2() [1/4]

gl_helper::Vec2::Vec2 ( )
inline

◆ Vec2() [2/4]

gl_helper::Vec2::Vec2 ( const float  fX,
const float  fY 
)
inline

◆ Vec2() [3/4]

gl_helper::Vec2::Vec2 ( const Vec2 vec)
inline

◆ Vec2() [4/4]

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

Member Function Documentation

◆ Distance()

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

◆ Dot()

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

◆ Dump()

void gl_helper::Vec2::Dump ( )
inline

◆ Length()

float gl_helper::Vec2::Length ( ) const
inline
Here is the caller graph for this function:

◆ Normalize()

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

◆ operator!=()

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=() [1/2]

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

◆ operator*=() [2/2]

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator-=()

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

◆ operator/() [1/2]

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

◆ operator/() [2/2]

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

◆ operator/=() [1/2]

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

◆ operator/=() [2/2]

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

◆ operator<()

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

◆ operator==()

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

◆ Validate()

bool gl_helper::Vec2::Validate ( )
inline

◆ Value()

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

Friends And Related Function Documentation

◆ Mat4

friend class Mat4
friend

◆ operator*

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

◆ operator-

Vec2 operator- ( const Vec2 rhs)
friend

◆ operator/

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

◆ Quaternion

friend class Quaternion
friend

◆ Vec3

friend class Vec3
friend

◆ Vec4

friend class Vec4
friend

Member Data Documentation

◆ x_

float gl_helper::Vec2::x_

◆ y_

float gl_helper::Vec2::y_

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