Project

General

Profile

OPENXR Scol plugin

Public Member Functions

 Vector4 (const float fX, const float fY, const float fZ, const float fW)
 
 Vector4 (const float afCoordinate[4])
 
 Vector4 (const int afCoordinate[4])
 
 Vector4 (float *const r)
 
 Vector4 (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.
 
Vector4operator= (const Vector4 &rkVector)
 
Vector4operator= (const float fScaler)
 
bool operator== (const Vector4 &rkVector) const
 
bool operator!= (const Vector4 &rkVector) const
 
Vector4 operator+ (const Vector4 &rkVector) const
 
Vector4 operator- (const Vector4 &rkVector) const
 
Vector4 operator* (const float fScalar) const
 
Vector4 operator* (const Vector4 &rhs) const
 
Vector4 operator/ (const float fScalar) const
 
Vector4 operator/ (const Vector4 &rhs) const
 
const Vector4operator+ () const
 
Vector4 operator- () const
 
Vector4operator+= (const Vector4 &rkVector)
 
Vector4operator+= (const float fScalar)
 
Vector4operator-= (const Vector4 &rkVector)
 
Vector4operator-= (const float fScalar)
 
Vector4operator*= (const float fScalar)
 
Vector4operator*= (const Vector4 &rkVector)
 
Vector4operator/= (const float fScalar)
 
Vector4operator/= (const Vector4 &rkVector)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Static Public Attributes

static const Vector4 ZERO
 

Friends

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

Detailed Description

Definition at line 784 of file vrmaths.h.

Constructor & Destructor Documentation

◆ Vector4() [1/6]

Vector4::Vector4 ( )
inline

Definition at line 792 of file vrmaths.h.

◆ Vector4() [2/6]

Vector4::Vector4 ( const float  fX,
const float  fY,
const float  fZ,
const float  fW 
)
inline

Definition at line 796 of file vrmaths.h.

◆ Vector4() [3/6]

Vector4::Vector4 ( const float  afCoordinate[4])
inlineexplicit

Definition at line 799 of file vrmaths.h.

◆ Vector4() [4/6]

Vector4::Vector4 ( const int  afCoordinate[4])
inlineexplicit

Definition at line 805 of file vrmaths.h.

◆ Vector4() [5/6]

Vector4::Vector4 ( float *const  r)
inlineexplicit

Definition at line 813 of file vrmaths.h.

◆ Vector4() [6/6]

Vector4::Vector4 ( const float  scaler)
inlineexplicit

Definition at line 816 of file vrmaths.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 867 of file vrmaths.h.

◆ operator*() [1/2]

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

Definition at line 891 of file vrmaths.h.

◆ operator*() [2/2]

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

Definition at line 900 of file vrmaths.h.

◆ operator*=() [1/2]

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

Definition at line 1033 of file vrmaths.h.

◆ operator*=() [2/2]

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

Definition at line 1042 of file vrmaths.h.

◆ operator+() [1/2]

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

Definition at line 929 of file vrmaths.h.

◆ operator+() [2/2]

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

Definition at line 873 of file vrmaths.h.

◆ operator+=() [1/2]

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

Definition at line 1005 of file vrmaths.h.

◆ operator+=() [2/2]

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

Definition at line 995 of file vrmaths.h.

◆ operator-() [1/2]

Vector4 Vector4::operator- ( ) const
inline

Definition at line 934 of file vrmaths.h.

◆ operator-() [2/2]

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

Definition at line 882 of file vrmaths.h.

◆ operator-=() [1/2]

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

Definition at line 1024 of file vrmaths.h.

◆ operator-=() [2/2]

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

Definition at line 1014 of file vrmaths.h.

◆ operator/() [1/2]

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

Definition at line 909 of file vrmaths.h.

◆ operator/() [2/2]

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

Definition at line 920 of file vrmaths.h.

◆ operator/=() [1/2]

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

Definition at line 1052 of file vrmaths.h.

◆ operator/=() [2/2]

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

Definition at line 1064 of file vrmaths.h.

◆ operator=() [1/2]

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

Definition at line 852 of file vrmaths.h.

◆ operator=() [2/2]

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

Definition at line 842 of file vrmaths.h.

◆ operator==()

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

Definition at line 862 of file vrmaths.h.

◆ operator[]() [1/2]

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

Definition at line 827 of file vrmaths.h.

◆ operator[]() [2/2]

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

Definition at line 822 of file vrmaths.h.

◆ ptr() [1/2]

float * Vector4::ptr ( )
inline

Pointer accessor for direct copying.

Definition at line 832 of file vrmaths.h.

◆ ptr() [2/2]

const float * Vector4::ptr ( ) const
inline

Pointer accessor for direct copying.

Definition at line 837 of file vrmaths.h.

Friends And Related Symbol Documentation

◆ operator*

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

Definition at line 940 of file vrmaths.h.

◆ operator+ [1/2]

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

Definition at line 967 of file vrmaths.h.

◆ operator+ [2/2]

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

Definition at line 958 of file vrmaths.h.

◆ operator- [1/2]

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

Definition at line 985 of file vrmaths.h.

◆ operator- [2/2]

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

Definition at line 976 of file vrmaths.h.

◆ operator/

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

Definition at line 949 of file vrmaths.h.

Member Data Documentation

◆ w

float Vector4::w

Definition at line 787 of file vrmaths.h.

◆ x

float Vector4::x

Definition at line 787 of file vrmaths.h.

◆ y

float Vector4::y

Definition at line 787 of file vrmaths.h.

◆ z

float Vector4::z

Definition at line 787 of file vrmaths.h.

◆ ZERO

const Vector4 Vector4::ZERO
static

Definition at line 790 of file vrmaths.h.


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