OPENXR Scol plugin
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
Vector3 Class Reference

Public Member Functions

 Vector3 (const XrVector3f vec)
 
 Vector3 (const float fX, const float fY, const float fZ)
 
 Vector3 (const float afCoordinate[3])
 
 Vector3 (const int afCoordinate[3])
 
 Vector3 (float *const r)
 
 Vector3 (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.
 
Vector3operator= (const Vector3 &rkVector)
 
Vector3operator= (const float fScaler)
 
bool operator== (const Vector3 &rkVector) const
 
bool operator!= (const Vector3 &rkVector) const
 
Vector3 operator+ (const Vector3 &rkVector) const
 
Vector3 operator- (const Vector3 &rkVector) const
 
Vector3 operator* (const float fScalar) const
 
Vector3 operator* (const Vector3 &rhs) const
 
Vector3 operator/ (const float fScalar) const
 
Vector3 operator/ (const Vector3 &rhs) const
 
const Vector3operator+ () const
 
Vector3 operator- () const
 
Vector3operator+= (const Vector3 &rkVector)
 
Vector3operator+= (const float fScalar)
 
Vector3operator-= (const Vector3 &rkVector)
 
Vector3operator-= (const float fScalar)
 
Vector3operator*= (const float fScalar)
 
Vector3operator*= (const Vector3 &rkVector)
 
Vector3operator/= (const float fScalar)
 
Vector3operator/= (const Vector3 &rkVector)
 
Vector3 crossProduct (const Vector3 &rkVector) const
 
float dotProduct (const Vector3 &vec) const
 
float squaredLength () const
 
float length () const
 
float distance (const Vector3 &rhs) const
 

Public Attributes

float x
 
float y
 
float z
 

Static Public Attributes

static const Vector3 ZERO
 

Friends

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

Detailed Description

Definition at line 486 of file vrmaths.h.

Constructor & Destructor Documentation

◆ Vector3() [1/7]

Vector3::Vector3 ( )
inline

Definition at line 494 of file vrmaths.h.

◆ Vector3() [2/7]

Vector3::Vector3 ( const XrVector3f  vec)
inline

Definition at line 498 of file vrmaths.h.

◆ Vector3() [3/7]

Vector3::Vector3 ( const float  fX,
const float  fY,
const float  fZ 
)
inline

Definition at line 505 of file vrmaths.h.

◆ Vector3() [4/7]

Vector3::Vector3 ( const float  afCoordinate[3])
inlineexplicit

Definition at line 508 of file vrmaths.h.

◆ Vector3() [5/7]

Vector3::Vector3 ( const int  afCoordinate[3])
inlineexplicit

Definition at line 513 of file vrmaths.h.

◆ Vector3() [6/7]

Vector3::Vector3 ( float *const  r)
inlineexplicit

Definition at line 520 of file vrmaths.h.

◆ Vector3() [7/7]

Vector3::Vector3 ( const float  scaler)
inlineexplicit

Definition at line 523 of file vrmaths.h.

Member Function Documentation

◆ crossProduct()

Vector3 Vector3::crossProduct ( const Vector3 rkVector) const
inline

Definition at line 758 of file vrmaths.h.

◆ distance()

float Vector3::distance ( const Vector3 rhs) const
inline

Definition at line 778 of file vrmaths.h.

◆ dotProduct()

float Vector3::dotProduct ( const Vector3 vec) const
inline

Definition at line 766 of file vrmaths.h.

◆ length()

float Vector3::length ( ) const
inline

Definition at line 776 of file vrmaths.h.

◆ operator!=()

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

Definition at line 571 of file vrmaths.h.

◆ operator*() [1/2]

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

Definition at line 593 of file vrmaths.h.

◆ operator*() [2/2]

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

Definition at line 601 of file vrmaths.h.

◆ operator*=() [1/2]

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

Definition at line 721 of file vrmaths.h.

◆ operator*=() [2/2]

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

Definition at line 729 of file vrmaths.h.

◆ operator+() [1/2]

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

Definition at line 627 of file vrmaths.h.

◆ operator+() [2/2]

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

Definition at line 577 of file vrmaths.h.

◆ operator+=() [1/2]

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

Definition at line 696 of file vrmaths.h.

◆ operator+=() [2/2]

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

Definition at line 687 of file vrmaths.h.

◆ operator-() [1/2]

Vector3 Vector3::operator- ( ) const
inline

Definition at line 632 of file vrmaths.h.

◆ operator-() [2/2]

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

Definition at line 585 of file vrmaths.h.

◆ operator-=() [1/2]

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

Definition at line 713 of file vrmaths.h.

◆ operator-=() [2/2]

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

Definition at line 704 of file vrmaths.h.

◆ operator/() [1/2]

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

Definition at line 609 of file vrmaths.h.

◆ operator/() [2/2]

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

Definition at line 619 of file vrmaths.h.

◆ operator/=() [1/2]

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

Definition at line 738 of file vrmaths.h.

◆ operator/=() [2/2]

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

Definition at line 749 of file vrmaths.h.

◆ operator=() [1/2]

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

Definition at line 557 of file vrmaths.h.

◆ operator=() [2/2]

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

Definition at line 548 of file vrmaths.h.

◆ operator==()

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

Definition at line 566 of file vrmaths.h.

◆ operator[]() [1/2]

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

Definition at line 533 of file vrmaths.h.

◆ operator[]() [2/2]

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

Definition at line 528 of file vrmaths.h.

◆ ptr() [1/2]

float * Vector3::ptr ( )
inline

Pointer accessor for direct copying.

Definition at line 538 of file vrmaths.h.

◆ ptr() [2/2]

const float * Vector3::ptr ( ) const
inline

Pointer accessor for direct copying.

Definition at line 543 of file vrmaths.h.

◆ squaredLength()

float Vector3::squaredLength ( ) const
inline

Definition at line 774 of file vrmaths.h.

Friends And Related Symbol Documentation

◆ operator*

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

Definition at line 638 of file vrmaths.h.

◆ operator+ [1/2]

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

Definition at line 662 of file vrmaths.h.

◆ operator+ [2/2]

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

Definition at line 654 of file vrmaths.h.

◆ operator- [1/2]

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

Definition at line 678 of file vrmaths.h.

◆ operator- [2/2]

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

Definition at line 670 of file vrmaths.h.

◆ operator/

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

Definition at line 646 of file vrmaths.h.

Member Data Documentation

◆ x

float Vector3::x

Definition at line 489 of file vrmaths.h.

◆ y

float Vector3::y

Definition at line 489 of file vrmaths.h.

◆ z

float Vector3::z

Definition at line 489 of file vrmaths.h.

◆ ZERO

const Vector3 Vector3::ZERO
static

Definition at line 492 of file vrmaths.h.


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