PPL Logo

Mgc::Vector3 Class Reference

#include <MgcVector3.h>

Collaboration diagram for Mgc::Vector3:

Collaboration graph
[legend]

Public Member Functions

 Vector3 ()
 Vector3 (Real fX, Real fY, Real fZ)
 Vector3 (Real afCoordinate[3])
 Vector3 (const Vector3 &rkVector)
Realoperator[] (int i) const
 operator Real * ()
Vector3operator= (const Vector3 &rkVector)
bool operator== (const Vector3 &rkVector) const
bool operator!= (const Vector3 &rkVector) const
bool operator< (const Vector3 &rkVector) const
bool operator<= (const Vector3 &rkVector) const
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* (Real fScalar) const
Vector3 operator/ (Real fScalar) const
Vector3 operator- () const
Vector3operator+= (const Vector3 &rkVector)
Vector3operator-= (const Vector3 &rkVector)
Vector3operator*= (Real fScalar)
Vector3operator/= (Real fScalar)
Real Length () const
Real SquaredLength () const
Real Dot (const Vector3 &rkVector) const
Real Unitize (Real fTolerance=1e-06f)
Vector3 Cross (const Vector3 &rkVector) const
Vector3 UnitCross (const Vector3 &rkVector) const

Static Public Member Functions

static void Orthonormalize (Vector3 akVector[])
static void GenerateOrthonormalBasis (Vector3 &rkU, Vector3 &rkV, Vector3 &rkW, bool bUnitLengthW=true)

Data Fields

Real x
Real y
Real z

Static Public Attributes

static const Vector3 ZERO
static const Vector3 UNIT_X
static const Vector3 UNIT_Y
static const Vector3 UNIT_Z
static Real FUZZ

Friends

MAGICFM friend Vector3 operator* (Real fScalar, const Vector3 &rkVector)

Detailed Description

Definition at line 21 of file MgcVector3.h.


Constructor & Destructor Documentation

Mgc::Vector3::Vector3 (  ) 

Mgc::Vector3::Vector3 ( Real  fX,
Real  fY,
Real  fZ 
)

Mgc::Vector3::Vector3 ( Real  afCoordinate[3]  ) 

Mgc::Vector3::Vector3 ( const Vector3 rkVector  ) 


Member Function Documentation

Real& Mgc::Vector3::operator[] ( int  i  )  const

Mgc::Vector3::operator Real * (  ) 

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

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

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

bool Mgc::Vector3::operator< ( const Vector3 rkVector  )  const

bool Mgc::Vector3::operator<= ( const Vector3 rkVector  )  const

bool Mgc::Vector3::operator> ( const Vector3 rkVector  )  const

bool Mgc::Vector3::operator>= ( const Vector3 rkVector  )  const

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

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

Vector3 Mgc::Vector3::operator* ( Real  fScalar  )  const

Vector3 Mgc::Vector3::operator/ ( Real  fScalar  )  const

Vector3 Mgc::Vector3::operator- (  )  const

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

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

Vector3& Mgc::Vector3::operator*= ( Real  fScalar  ) 

Vector3& Mgc::Vector3::operator/= ( Real  fScalar  ) 

Real Mgc::Vector3::Length (  )  const

Real Mgc::Vector3::SquaredLength (  )  const

Real Mgc::Vector3::Dot ( const Vector3 rkVector  )  const

Real Mgc::Vector3::Unitize ( Real  fTolerance = 1e-06f  ) 

Vector3 Mgc::Vector3::Cross ( const Vector3 rkVector  )  const

Vector3 Mgc::Vector3::UnitCross ( const Vector3 rkVector  )  const

static void Mgc::Vector3::Orthonormalize ( Vector3  akVector[]  )  [static]

static void Mgc::Vector3::GenerateOrthonormalBasis ( Vector3 rkU,
Vector3 rkV,
Vector3 rkW,
bool  bUnitLengthW = true 
) [static]


Friends And Related Function Documentation

MAGICFM friend Vector3 operator* ( Real  fScalar,
const Vector3 rkVector 
) [friend]


Field Documentation

Definition at line 31 of file MgcVector3.h.

Definition at line 31 of file MgcVector3.h.

Definition at line 31 of file MgcVector3.h.

const Vector3 Mgc::Vector3::ZERO [static]

Definition at line 84 of file MgcVector3.h.

const Vector3 Mgc::Vector3::UNIT_X [static]

Definition at line 85 of file MgcVector3.h.

const Vector3 Mgc::Vector3::UNIT_Y [static]

Definition at line 86 of file MgcVector3.h.

const Vector3 Mgc::Vector3::UNIT_Z [static]

Definition at line 87 of file MgcVector3.h.

Definition at line 90 of file MgcVector3.h.


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

Generated on Mon Sep 21 08:33:50 2020 for Charm++ by  doxygen 1.5.5