Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CVector3D Class Reference

#include <Vector3D.h>

Public Member Functions

 CVector3D ()
 
 CVector3D (float x, float y, float z)
 
 CVector3D (const CFixedVector3D &v)
 
int operator! () const
 
float & operator[] (int index)
 
const float & operator[] (int index) const
 
bool operator== (const CVector3D &vector) const
 
bool operator!= (const CVector3D &vector) const
 
CVector3D operator+ (const CVector3D &vector) const
 
CVector3Doperator+= (const CVector3D &vector)
 
CVector3D operator- (const CVector3D &vector) const
 
CVector3Doperator-= (const CVector3D &vector)
 
CVector3D operator* (float value) const
 
CVector3Doperator*= (float value)
 
CVector3D operator- () const
 
float Dot (const CVector3D &vector) const
 
CVector3D Cross (const CVector3D &vector) const
 
float Length () const
 
float LengthSquared () const
 
void Normalize ()
 
CVector3D Normalized () const
 
PS::span< const float > AsFloatArray () const
 

Static Public Member Functions

static CVector3D Max ()
 
static CVector3D Min ()
 

Public Attributes

float X
 
float Y
 
float Z
 

Constructor & Destructor Documentation

◆ CVector3D() [1/3]

CVector3D::CVector3D ( )
inline

◆ CVector3D() [2/3]

CVector3D::CVector3D ( float  x,
float  y,
float  z 
)
inline

◆ CVector3D() [3/3]

CVector3D::CVector3D ( const CFixedVector3D v)

Member Function Documentation

◆ AsFloatArray()

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

◆ Cross()

CVector3D CVector3D::Cross ( const CVector3D vector) const
inline

◆ Dot()

float CVector3D::Dot ( const CVector3D vector) const
inline

◆ Length()

float CVector3D::Length ( ) const

◆ LengthSquared()

float CVector3D::LengthSquared ( ) const

◆ Max()

CVector3D CVector3D::Max ( )
static

◆ Min()

CVector3D CVector3D::Min ( )
static

◆ Normalize()

void CVector3D::Normalize ( )

◆ Normalized()

CVector3D CVector3D::Normalized ( ) const

◆ operator!()

int CVector3D::operator! ( ) const

◆ operator!=()

bool CVector3D::operator!= ( const CVector3D vector) const
inline

◆ operator*()

CVector3D CVector3D::operator* ( float  value) const
inline

◆ operator*=()

CVector3D & CVector3D::operator*= ( float  value)
inline

◆ operator+()

CVector3D CVector3D::operator+ ( const CVector3D vector) const
inline

◆ operator+=()

CVector3D & CVector3D::operator+= ( const CVector3D vector)
inline

◆ operator-() [1/2]

CVector3D CVector3D::operator- ( ) const
inline

◆ operator-() [2/2]

CVector3D CVector3D::operator- ( const CVector3D vector) const
inline

◆ operator-=()

CVector3D & CVector3D::operator-= ( const CVector3D vector)
inline

◆ operator==()

bool CVector3D::operator== ( const CVector3D vector) const
inline

◆ operator[]() [1/2]

float & CVector3D::operator[] ( int  index)
inline

◆ operator[]() [2/2]

const float & CVector3D::operator[] ( int  index) const
inline

Member Data Documentation

◆ X

float CVector3D::X

◆ Y

float CVector3D::Y

◆ Z

float CVector3D::Z

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