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. | |
These classes should be helpful for most basic 3D math calculations, from finding dot and cross products to line-triangle intersections.
|
|
Represents a coordinate. This type should be used in all 3D math functions and any functions that manipulate positions in three dinemtional space. |
|
|
Vector pointing in the "forward" direction.
In GAUGE, the positive Y axis points forward. |
|
|
Vector pointing in the "up" direction.
In GAUGE, the positive X axis points right. |
|
|
Vector pointing in the "right" direction.
In GAUGE, the positive Z axis points up. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000