Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CVector4D Class Reference

#include <Vector4D.h>

Public Member Functions

 CVector4D ()
 
 CVector4D (float x, float y, float z, float w)
 
bool operator== (const CVector4D &t) const
 
bool operator!= (const CVector4D &t) const
 
CVector4D operator- () const
 
CVector4D operator+ (const CVector4D &t) const
 
CVector4D operator- (const CVector4D &t) const
 
CVector4D operator* (const CVector4D &t) const
 
CVector4D operator* (float f) const
 
CVector4D operator/ (float f) const
 
CVector4Doperator+= (const CVector4D &t)
 
CVector4Doperator-= (const CVector4D &t)
 
CVector4Doperator*= (const CVector4D &t)
 
CVector4Doperator*= (float f)
 
CVector4Doperator/= (float f)
 
float Dot (const CVector4D &a) const
 
PS::span< const float > AsFloatArray () const
 

Public Attributes

float X
 
float Y
 
float Z
 
float W
 

Constructor & Destructor Documentation

◆ CVector4D() [1/2]

CVector4D::CVector4D ( )
inline

◆ CVector4D() [2/2]

CVector4D::CVector4D ( float  x,
float  y,
float  z,
float  w 
)
inline

Member Function Documentation

◆ AsFloatArray()

PS::span< const float > CVector4D::AsFloatArray ( ) const
inline

◆ Dot()

float CVector4D::Dot ( const CVector4D a) const
inline

◆ operator!=()

bool CVector4D::operator!= ( const CVector4D t) const
inline

◆ operator*() [1/2]

CVector4D CVector4D::operator* ( const CVector4D t) const
inline

◆ operator*() [2/2]

CVector4D CVector4D::operator* ( float  f) const
inline

◆ operator*=() [1/2]

CVector4D & CVector4D::operator*= ( const CVector4D t)
inline

◆ operator*=() [2/2]

CVector4D & CVector4D::operator*= ( float  f)
inline

◆ operator+()

CVector4D CVector4D::operator+ ( const CVector4D t) const
inline

◆ operator+=()

CVector4D & CVector4D::operator+= ( const CVector4D t)
inline

◆ operator-() [1/2]

CVector4D CVector4D::operator- ( ) const
inline

◆ operator-() [2/2]

CVector4D CVector4D::operator- ( const CVector4D t) const
inline

◆ operator-=()

CVector4D & CVector4D::operator-= ( const CVector4D t)
inline

◆ operator/()

CVector4D CVector4D::operator/ ( float  f) const
inline

◆ operator/=()

CVector4D & CVector4D::operator/= ( float  f)
inline

◆ operator==()

bool CVector4D::operator== ( const CVector4D t) const
inline

Member Data Documentation

◆ W

float CVector4D::W

◆ X

float CVector4D::X

◆ Y

float CVector4D::Y

◆ Z

float CVector4D::Z

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