gfx::Vector3 Struct Reference

3D vector or point. More...

#include <gfx_types_vertex.hh>

Inheritance diagram for gfx::Vector3:

gfx::EyeVertex gfx::LocalVertex gfx::NormalVertex gfx::WorldVertex

List of all members.

Public Member Functions

 Vector3 (void)
 Vector3 (fp X, fp Y, fp Z)
 Vector3 (const fp f[3])
void Set (fp X, fp Y, fp Z)
void Set (const fp f[3])
bool operator== (const Vector3 &src) const
bool operator!= (const Vector3 &src) const
Vector3operator+= (const Vector3 &src)
Vector3operator-= (const Vector3 &src)
Vector3operator *= (const Vector3 &src)
Vector3operator/= (const Vector3 &src)
fpoperator[] (uint i)
const fpoperator[] (uint i) const
void Check (void) const

Public Attributes

fp x
fp y
fp z


Detailed Description

3D vector or point.

Typesig omitted from Vector3 and EyeVertex: ------------------------------------------- EyeVertex must be the same size as fp[3] and GLfloat[3] in order to be sent to gfxsys. Since EyeVertex is based on Vector3, Vector3 likewise omits typesigs.


Constructor & Destructor Documentation

gfx::Vector3::Vector3 ( void   )  [inline]

gfx::Vector3::Vector3 ( fp  X,
fp  Y,
fp  Z 
) [inline]

gfx::Vector3::Vector3 ( const fp  f[3]  )  [inline, explicit]


Member Function Documentation

void gfx::Vector3::Set ( fp  X,
fp  Y,
fp  Z 
) [inline]

void gfx::Vector3::Set ( const fp  f[3]  )  [inline]

bool gfx::Vector3::operator== ( const Vector3 src  )  const [inline]

bool gfx::Vector3::operator!= ( const Vector3 src  )  const [inline]

Vector3& gfx::Vector3::operator+= ( const Vector3 src  )  [inline]

Vector3& gfx::Vector3::operator-= ( const Vector3 src  )  [inline]

Vector3& gfx::Vector3::operator *= ( const Vector3 src  )  [inline]

Vector3& gfx::Vector3::operator/= ( const Vector3 src  )  [inline]

fp& gfx::Vector3::operator[] ( uint  i  )  [inline]

const fp& gfx::Vector3::operator[] ( uint  i  )  const [inline]

void gfx::Vector3::Check ( void   )  const [inline]

Reimplemented in gfx::LocalVertex, gfx::WorldVertex, gfx::EyeVertex, and gfx::NormalVertex.


Member Data Documentation

fp gfx::Vector3::x

fp gfx::Vector3::y

fp gfx::Vector3::z


The documentation for this struct was generated from the following file: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:28 2007