Project

General

Profile

OPENXR Scol plugin

Public Member Functions

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

Public Attributes

float x
 
float y
 

Static Public Attributes

static const Vector2 ZERO
 

Friends

Vector2 operator* (const float fScalar, const Vector2 &rkVector)
 
Vector2 operator/ (const float fScalar, const Vector2 &rkVector)
 
Vector2 operator+ (const Vector2 &lhs, const float rhs)
 
Vector2 operator+ (const float lhs, const Vector2 &rhs)
 
Vector2 operator- (const Vector2 &lhs, const float rhs)
 
Vector2 operator- (const float lhs, const Vector2 &rhs)
 

Detailed Description

Definition at line 249 of file vrmaths.h.

Constructor & Destructor Documentation

◆ Vector2() [1/5]

Vector2::Vector2 ( )
inline

Definition at line 257 of file vrmaths.h.

◆ Vector2() [2/5]

Vector2::Vector2 ( const XrVector2f  vec)
inline

Definition at line 261 of file vrmaths.h.

◆ Vector2() [3/5]

Vector2::Vector2 ( const float  fX,
const float  fY 
)
inline

Definition at line 267 of file vrmaths.h.

◆ Vector2() [4/5]

Vector2::Vector2 ( float *const  r)
inlineexplicit

Definition at line 270 of file vrmaths.h.

◆ Vector2() [5/5]

Vector2::Vector2 ( const float  scaler)
inlineexplicit

Definition at line 273 of file vrmaths.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 318 of file vrmaths.h.

◆ operator*() [1/2]

Vector2 Vector2::operator* ( const float  fScalar) const
inline

Definition at line 338 of file vrmaths.h.

◆ operator*() [2/2]

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

Definition at line 345 of file vrmaths.h.

◆ operator*=() [1/2]

Vector2 & Vector2::operator*= ( const float  fScalar)
inline

Definition at line 452 of file vrmaths.h.

◆ operator*=() [2/2]

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

Definition at line 459 of file vrmaths.h.

◆ operator+() [1/2]

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

Definition at line 368 of file vrmaths.h.

◆ operator+() [2/2]

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

Definition at line 324 of file vrmaths.h.

◆ operator+=() [1/2]

Vector2 & Vector2::operator+= ( const float  fScalar)
inline

Definition at line 430 of file vrmaths.h.

◆ operator+=() [2/2]

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

Definition at line 422 of file vrmaths.h.

◆ operator-() [1/2]

Vector2 Vector2::operator- ( ) const
inline

Definition at line 373 of file vrmaths.h.

◆ operator-() [2/2]

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

Definition at line 331 of file vrmaths.h.

◆ operator-=() [1/2]

Vector2 & Vector2::operator-= ( const float  fScalar)
inline

Definition at line 445 of file vrmaths.h.

◆ operator-=() [2/2]

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

Definition at line 437 of file vrmaths.h.

◆ operator/() [1/2]

Vector2 Vector2::operator/ ( const float  fScalar) const
inline

Definition at line 352 of file vrmaths.h.

◆ operator/() [2/2]

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

Definition at line 361 of file vrmaths.h.

◆ operator/=() [1/2]

Vector2 & Vector2::operator/= ( const float  fScalar)
inline

Definition at line 467 of file vrmaths.h.

◆ operator/=() [2/2]

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

Definition at line 477 of file vrmaths.h.

◆ operator=() [1/2]

Vector2 & Vector2::operator= ( const float  fScaler)
inline

Definition at line 305 of file vrmaths.h.

◆ operator=() [2/2]

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

Definition at line 297 of file vrmaths.h.

◆ operator==()

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

Definition at line 313 of file vrmaths.h.

◆ operator[]() [1/2]

float & Vector2::operator[] ( const size_t  i)
inline

Definition at line 282 of file vrmaths.h.

◆ operator[]() [2/2]

float Vector2::operator[] ( const size_t  i) const
inline

Definition at line 277 of file vrmaths.h.

◆ ptr() [1/2]

float * Vector2::ptr ( )
inline

Pointer accessor for direct copying.

Definition at line 287 of file vrmaths.h.

◆ ptr() [2/2]

const float * Vector2::ptr ( ) const
inline

Pointer accessor for direct copying.

Definition at line 292 of file vrmaths.h.

Friends And Related Symbol Documentation

◆ operator*

Vector2 operator* ( const float  fScalar,
const Vector2 rkVector 
)
friend

Definition at line 379 of file vrmaths.h.

◆ operator+ [1/2]

Vector2 operator+ ( const float  lhs,
const Vector2 rhs 
)
friend

Definition at line 400 of file vrmaths.h.

◆ operator+ [2/2]

Vector2 operator+ ( const Vector2 lhs,
const float  rhs 
)
friend

Definition at line 393 of file vrmaths.h.

◆ operator- [1/2]

Vector2 operator- ( const float  lhs,
const Vector2 rhs 
)
friend

Definition at line 414 of file vrmaths.h.

◆ operator- [2/2]

Vector2 operator- ( const Vector2 lhs,
const float  rhs 
)
friend

Definition at line 407 of file vrmaths.h.

◆ operator/

Vector2 operator/ ( const float  fScalar,
const Vector2 rkVector 
)
friend

Definition at line 386 of file vrmaths.h.

Member Data Documentation

◆ x

float Vector2::x

Definition at line 252 of file vrmaths.h.

◆ y

float Vector2::y

Definition at line 252 of file vrmaths.h.

◆ ZERO

const Vector2 Vector2::ZERO
static

Definition at line 255 of file vrmaths.h.


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