Main Page   Modules   Class Hierarchy   Compound List   Compound Members  

3D Math

Classes for performing 3D math calculations. More...

Compounds

class  GAUGE3D::GAngles
class  GAUGE3D::GLine
class  GAUGE3D::GPlane
class  GAUGE3D::GPolygon
class  GAUGE3D::GQuaternion
class  GAUGE3D::GSegment
class  GAUGE3D::GTriangle
class  GAUGE3D::GVector

Vector Constants

const GVector GVECTOR_I = GVector(1.0, 0.0, 0.0)
 Unit vector in the positive x direction.

const GVector GVECTOR_J = GVector(0.0, 1.0, 0.0)
 Unit vector in the positive y direction.

const GVector GVECTOR_K = GVector(0.0, 0.0, 1.0)
 Unit vector in the positive z direction.

const GVector GVECTOR_0 = GVector(0.0, 0.0, 0.0)
 Vector with lenght 0.

const GVector GVECTOR_FORWARD = GVector(0.0, 1.0, 0.0)
 Vector pointing in the "forward" direction. More...

const GVector GVECTOR_RIGHT = GVector(1.0, 0.0, 0.0)
 Vector pointing in the "up" direction. More...

const GVector GVECTOR_UP = GVector(0.0, 0.0, 1.0)
 Vector pointing in the "right" direction. More...


Typedefs

typedef float GCoordinate
 Represents a coordinate. More...


Functions

bool IsApproxZero (float a)
 Test if a float is equal to zero with a tolerance of +-0.0001.

bool IsApproxZero (double a)
 Test if a double is equal to zero with a tolerance of +-0.0000001.


Detailed Description

Classes for performing 3D math calculations.

These classes should be helpful for most basic 3D math calculations, from finding dot and cross products to line-triangle intersections.


Typedef Documentation

typedef float GAUGE3D::GCoordinate
 

Represents a coordinate.

This type should be used in all 3D math functions and any functions that manipulate positions in three dinemtional space.


Variable Documentation

const GVector GAUGE3D::GVECTOR_FORWARD = GVector(0.0, 1.0, 0.0)
 

Vector pointing in the "forward" direction.

In GAUGE, the positive Y axis points forward.

const GVector GAUGE3D::GVECTOR_RIGHT = GVector(1.0, 0.0, 0.0)
 

Vector pointing in the "up" direction.

In GAUGE, the positive X axis points right.

const GVector GAUGE3D::GVECTOR_UP = GVector(0.0, 0.0, 1.0)
 

Vector pointing in the "right" direction.

In GAUGE, the positive Z axis points up.


Generated at Tue Jan 30 17:07:34 2001 for gauge3d by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000