GLC_Vector3df Class Reference

GLC_Vector3df is a 3 dimensions Vector. More...

#include <glc_vector3df.h>

List of all members.

Public Member Functions

Constructor / Destructor

 GLC_Vector3df ()
 GLC_Vector3df (const float &dX, const float &dY, const float &dZ)
 Standard constructor With x, y, z.
 GLC_Vector3df (const GLC_Vector3df &Vect)
Set Functions

GLC_Vector3dfsetX (const float &dX)
 X Compound.
GLC_Vector3dfsetY (const float &dY)
 Y Compound.
GLC_Vector3dfsetZ (const float &dZ)
 Z Compound.
GLC_Vector3dfsetVect (const float &dX, const float &dY, const float &dZ)
 All Compound.
GLC_Vector3dfsetVect (const GLC_Vector3df &Vect)
 From another Vector.
GLC_Vector3dfsetInv (void)
 Invert Vector.
Get Functions

float X (void) const
 Return X Compound.
float Y (void) const
 Return Y Compound.
float Z (void) const
 Return Z Compound.
const float * data (void) const
 Return a pointer to vector data.
bool isNull (void) const
 Return true if the vector is null.

Private Attributes

float m_Vector [3]

Friends

class GLC_Vector4d
class GLC_Vector3d

Detailed Description

GLC_Vector3df is a 3 dimensions Vector.

GLC_Vector3df is used to represent 3D position and vectors.

Definition at line 41 of file glc_vector3df.h.


Constructor & Destructor Documentation

GLC_Vector3df::GLC_Vector3df (  )  [inline]

Default constructor Value is set to
X = 0.0
Y = 0.0
Z = 0.0

Definition at line 56 of file glc_vector3df.h.

References GLC_Vector3d::m_Vector.

GLC_Vector3df::GLC_Vector3df ( const float &  dX,
const float &  dY,
const float &  dZ 
) [inline]

Standard constructor With x, y, z.

Definition at line 64 of file glc_vector3df.h.

References GLC_Vector3d::setVect().

GLC_Vector3df::GLC_Vector3df ( const GLC_Vector3df Vect  )  [inline]

Copy constructor Sample use

 NewVect = new GLC_Vector3d(OldVect);

Definition at line 75 of file glc_vector3df.h.

References m_Vector, and GLC_Vector3d::m_Vector.


Member Function Documentation

const float* GLC_Vector3df::data ( void   )  const [inline]

Return a pointer to vector data.

Definition at line 161 of file glc_vector3df.h.

References GLC_Vector3d::m_Vector.

bool GLC_Vector3df::isNull ( void   )  const [inline]

Return true if the vector is null.

Definition at line 166 of file glc_vector3df.h.

References GLC_Vector3d::m_Vector.

GLC_Vector3df& GLC_Vector3df::setInv ( void   )  [inline]

Invert Vector.

Definition at line 130 of file glc_vector3df.h.

References GLC_Vector3d::m_Vector.

GLC_Vector3df& GLC_Vector3df::setVect ( const GLC_Vector3df Vect  )  [inline]

From another Vector.

Definition at line 121 of file glc_vector3df.h.

References m_Vector, and GLC_Vector3d::m_Vector.

GLC_Vector3df& GLC_Vector3df::setVect ( const float &  dX,
const float &  dY,
const float &  dZ 
) [inline]

All Compound.

Definition at line 111 of file glc_vector3df.h.

References GLC_Vector3d::m_Vector.

Referenced by GLC_StlToWorld::extract3dVect().

GLC_Vector3df& GLC_Vector3df::setX ( const float &  dX  )  [inline]

X Compound.

Definition at line 90 of file glc_vector3df.h.

References GLC_Vector3d::m_Vector.

GLC_Vector3df& GLC_Vector3df::setY ( const float &  dY  )  [inline]

Y Compound.

Definition at line 97 of file glc_vector3df.h.

References GLC_Vector3d::m_Vector.

GLC_Vector3df& GLC_Vector3df::setZ ( const float &  dZ  )  [inline]

Z Compound.

Definition at line 104 of file glc_vector3df.h.

References GLC_Vector3d::m_Vector.

float GLC_Vector3df::X ( void   )  const [inline]
float GLC_Vector3df::Y ( void   )  const [inline]
float GLC_Vector3df::Z ( void   )  const [inline]

Friends And Related Function Documentation

friend class GLC_Vector3d [friend]

Definition at line 44 of file glc_vector3df.h.

friend class GLC_Vector4d [friend]

Definition at line 43 of file glc_vector3df.h.


Member Data Documentation

float GLC_Vector3df::m_Vector[3] [private]

Vector array definition
data[0] X
data[1] Y
data[2] Z

Definition at line 183 of file glc_vector3df.h.

Referenced by GLC_Vector3d::GLC_Vector3d(), GLC_Vector3df(), GLC_Vector4d::GLC_Vector4d(), GLC_Vector4d::operator=(), GLC_Vector3d::operator=(), and setVect().


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

SourceForge.net Logo

©2005 Laurent Ribon