Project

General

Profile

OPENXR Scol plugin

Public Member Functions

 Vector2i (const XrVector2f vec)
 
 Vector2i (const int fX, const int fY)
 
 Vector2i (int *const r)
 
 Vector2i (const int scaler)
 
int operator[] (const size_t i) const
 
int & operator[] (const size_t i)
 
int * ptr ()
 Pointer accessor for direct copying.
 
const int * ptr () const
 Pointer accessor for direct copying.
 
Vector2ioperator= (const Vector2i &rkVector)
 
Vector2ioperator= (const int fScaler)
 
bool operator== (const Vector2i &rkVector) const
 
bool operator!= (const Vector2i &rkVector) const
 
Vector2i operator+ (const Vector2i &rkVector) const
 
Vector2i operator- (const Vector2i &rkVector) const
 
Vector2i operator* (const int fScalar) const
 
Vector2i operator* (const Vector2i &rhs) const
 
Vector2i operator/ (const int fScalar) const
 
Vector2i operator/ (const Vector2i &rhs) const
 
const Vector2ioperator+ () const
 
Vector2i operator- () const
 
Vector2ioperator+= (const Vector2i &rkVector)
 
Vector2ioperator+= (const int fScalar)
 
Vector2ioperator-= (const Vector2i &rkVector)
 
Vector2ioperator-= (const int fScalar)
 
Vector2ioperator*= (const int fScalar)
 
Vector2ioperator*= (const Vector2i &rkVector)
 
Vector2ioperator/= (const Vector2i &rkVector)
 

Public Attributes

int x
 
int y
 

Static Public Attributes

static const Vector2i ZERO
 

Friends

Vector2i operator* (const int fScalar, const Vector2i &rkVector)
 
Vector2i operator/ (const int fScalar, const Vector2i &rkVector)
 
Vector2i operator+ (const Vector2i &lhs, const int rhs)
 
Vector2i operator+ (const int lhs, const Vector2i &rhs)
 
Vector2i operator- (const Vector2i &lhs, const int rhs)
 
Vector2i operator- (const int lhs, const Vector2i &rhs)
 

Detailed Description

Definition at line 22 of file vrmaths.h.

Constructor & Destructor Documentation

◆ Vector2i() [1/5]

Vector2i::Vector2i ( )
inline

Definition at line 30 of file vrmaths.h.

◆ Vector2i() [2/5]

Vector2i::Vector2i ( const XrVector2f  vec)
inline

Definition at line 34 of file vrmaths.h.

◆ Vector2i() [3/5]

Vector2i::Vector2i ( const int  fX,
const int  fY 
)
inline

Definition at line 40 of file vrmaths.h.

◆ Vector2i() [4/5]

Vector2i::Vector2i ( int *const  r)
inlineexplicit

Definition at line 43 of file vrmaths.h.

◆ Vector2i() [5/5]

Vector2i::Vector2i ( const int  scaler)
inlineexplicit

Definition at line 46 of file vrmaths.h.

Member Function Documentation

◆ operator!=()

bool Vector2i::operator!= ( const Vector2i rkVector) const
inline

Definition at line 91 of file vrmaths.h.

◆ operator*() [1/2]

Vector2i Vector2i::operator* ( const int  fScalar) const
inline

Definition at line 111 of file vrmaths.h.

◆ operator*() [2/2]

Vector2i Vector2i::operator* ( const Vector2i rhs) const
inline

Definition at line 118 of file vrmaths.h.

◆ operator*=() [1/2]

Vector2i & Vector2i::operator*= ( const int  fScalar)
inline

Definition at line 225 of file vrmaths.h.

◆ operator*=() [2/2]

Vector2i & Vector2i::operator*= ( const Vector2i rkVector)
inline

Definition at line 232 of file vrmaths.h.

◆ operator+() [1/2]

const Vector2i & Vector2i::operator+ ( ) const
inline

Definition at line 141 of file vrmaths.h.

◆ operator+() [2/2]

Vector2i Vector2i::operator+ ( const Vector2i rkVector) const
inline

Definition at line 97 of file vrmaths.h.

◆ operator+=() [1/2]

Vector2i & Vector2i::operator+= ( const int  fScalar)
inline

Definition at line 203 of file vrmaths.h.

◆ operator+=() [2/2]

Vector2i & Vector2i::operator+= ( const Vector2i rkVector)
inline

Definition at line 195 of file vrmaths.h.

◆ operator-() [1/2]

Vector2i Vector2i::operator- ( ) const
inline

Definition at line 146 of file vrmaths.h.

◆ operator-() [2/2]

Vector2i Vector2i::operator- ( const Vector2i rkVector) const
inline

Definition at line 104 of file vrmaths.h.

◆ operator-=() [1/2]

Vector2i & Vector2i::operator-= ( const int  fScalar)
inline

Definition at line 218 of file vrmaths.h.

◆ operator-=() [2/2]

Vector2i & Vector2i::operator-= ( const Vector2i rkVector)
inline

Definition at line 210 of file vrmaths.h.

◆ operator/() [1/2]

Vector2i Vector2i::operator/ ( const int  fScalar) const
inline

Definition at line 125 of file vrmaths.h.

◆ operator/() [2/2]

Vector2i Vector2i::operator/ ( const Vector2i rhs) const
inline

Definition at line 134 of file vrmaths.h.

◆ operator/=()

Vector2i & Vector2i::operator/= ( const Vector2i rkVector)
inline

Definition at line 240 of file vrmaths.h.

◆ operator=() [1/2]

Vector2i & Vector2i::operator= ( const int  fScaler)
inline

Definition at line 78 of file vrmaths.h.

◆ operator=() [2/2]

Vector2i & Vector2i::operator= ( const Vector2i rkVector)
inline

Definition at line 70 of file vrmaths.h.

◆ operator==()

bool Vector2i::operator== ( const Vector2i rkVector) const
inline

Definition at line 86 of file vrmaths.h.

◆ operator[]() [1/2]

int & Vector2i::operator[] ( const size_t  i)
inline

Definition at line 55 of file vrmaths.h.

◆ operator[]() [2/2]

int Vector2i::operator[] ( const size_t  i) const
inline

Definition at line 50 of file vrmaths.h.

◆ ptr() [1/2]

int * Vector2i::ptr ( )
inline

Pointer accessor for direct copying.

Definition at line 60 of file vrmaths.h.

◆ ptr() [2/2]

const int * Vector2i::ptr ( ) const
inline

Pointer accessor for direct copying.

Definition at line 65 of file vrmaths.h.

Friends And Related Symbol Documentation

◆ operator*

Vector2i operator* ( const int  fScalar,
const Vector2i rkVector 
)
friend

Definition at line 152 of file vrmaths.h.

◆ operator+ [1/2]

Vector2i operator+ ( const int  lhs,
const Vector2i rhs 
)
friend

Definition at line 173 of file vrmaths.h.

◆ operator+ [2/2]

Vector2i operator+ ( const Vector2i lhs,
const int  rhs 
)
friend

Definition at line 166 of file vrmaths.h.

◆ operator- [1/2]

Vector2i operator- ( const int  lhs,
const Vector2i rhs 
)
friend

Definition at line 187 of file vrmaths.h.

◆ operator- [2/2]

Vector2i operator- ( const Vector2i lhs,
const int  rhs 
)
friend

Definition at line 180 of file vrmaths.h.

◆ operator/

Vector2i operator/ ( const int  fScalar,
const Vector2i rkVector 
)
friend

Definition at line 159 of file vrmaths.h.

Member Data Documentation

◆ x

int Vector2i::x

Definition at line 25 of file vrmaths.h.

◆ y

int Vector2i::y

Definition at line 25 of file vrmaths.h.

◆ ZERO

const Vector2i Vector2i::ZERO
static

Definition at line 28 of file vrmaths.h.


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