Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
CFixedVector3D Class Reference

#include <FixedVector3D.h>

Public Member Functions

 CFixedVector3D ()
 
 CFixedVector3D (fixed X, fixed Y, fixed Z)
 
bool operator== (const CFixedVector3D &v) const
 Vector equality. More...
 
bool operator!= (const CFixedVector3D &v) const
 Vector inequality. More...
 
CFixedVector3D operator+ (const CFixedVector3D &v) const
 Vector addition. More...
 
CFixedVector3D operator- (const CFixedVector3D &v) const
 Vector subtraction. More...
 
CFixedVector3D operator- () const
 Negation. More...
 
CFixedVector3Doperator+= (const CFixedVector3D &v)
 Vector addition. More...
 
CFixedVector3Doperator-= (const CFixedVector3D &v)
 Vector subtraction. More...
 
fixed Length () const
 Returns the length of the vector. More...
 
void Normalize ()
 Normalize the vector so that length is close to 1. More...
 
void Normalize (fixed n)
 Normalize the vector so that length is close to n. More...
 
CFixedVector3D Cross (const CFixedVector3D &v)
 Compute the cross product of this vector with another. More...
 
fixed Dot (const CFixedVector3D &v)
 Compute the dot product of this vector with another. More...
 

Public Attributes

fixed X
 
fixed Y
 
fixed Z
 

Detailed Description

Definition at line 24 of file FixedVector3D.h.

Constructor & Destructor Documentation

CFixedVector3D::CFixedVector3D ( )
inline

Definition at line 29 of file FixedVector3D.h.

CFixedVector3D::CFixedVector3D ( fixed  X,
fixed  Y,
fixed  Z 
)
inline

Definition at line 31 of file FixedVector3D.h.

Member Function Documentation

CFixedVector3D CFixedVector3D::Cross ( const CFixedVector3D v)
inline

Compute the cross product of this vector with another.

Definition at line 138 of file FixedVector3D.h.

fixed CFixedVector3D::Dot ( const CFixedVector3D v)
inline

Compute the dot product of this vector with another.

Definition at line 171 of file FixedVector3D.h.

fixed CFixedVector3D::Length ( ) const
inline

Returns the length of the vector.

Will not overflow if the result can be represented as type 'fixed'.

Definition at line 82 of file FixedVector3D.h.

void CFixedVector3D::Normalize ( )
inline

Normalize the vector so that length is close to 1.

If length is 0, does nothing.

Definition at line 109 of file FixedVector3D.h.

void CFixedVector3D::Normalize ( fixed  n)
inline

Normalize the vector so that length is close to n.

If length is 0, does nothing.

Definition at line 124 of file FixedVector3D.h.

bool CFixedVector3D::operator!= ( const CFixedVector3D v) const
inline

Vector inequality.

Definition at line 40 of file FixedVector3D.h.

CFixedVector3D CFixedVector3D::operator+ ( const CFixedVector3D v) const
inline

Vector addition.

Definition at line 46 of file FixedVector3D.h.

CFixedVector3D& CFixedVector3D::operator+= ( const CFixedVector3D v)
inline

Vector addition.

Definition at line 64 of file FixedVector3D.h.

CFixedVector3D CFixedVector3D::operator- ( const CFixedVector3D v) const
inline

Vector subtraction.

Definition at line 52 of file FixedVector3D.h.

CFixedVector3D CFixedVector3D::operator- ( ) const
inline

Negation.

Definition at line 58 of file FixedVector3D.h.

CFixedVector3D& CFixedVector3D::operator-= ( const CFixedVector3D v)
inline

Vector subtraction.

Definition at line 71 of file FixedVector3D.h.

bool CFixedVector3D::operator== ( const CFixedVector3D v) const
inline

Vector equality.

Definition at line 34 of file FixedVector3D.h.

Member Data Documentation

fixed CFixedVector3D::X

Definition at line 27 of file FixedVector3D.h.

fixed CFixedVector3D::Y

Definition at line 27 of file FixedVector3D.h.

fixed CFixedVector3D::Z

Definition at line 27 of file FixedVector3D.h.


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