#include <gauge3d/3dmath/triangle.h>
Public Methods | |
| GTriangle () | |
| Leaves vertices uninitialized. | |
| GTriangle (const GVector &vertex1,const GVector &vertex2,const GVector &vertex3) | |
| Initializes vertices to specified values. | |
| GTriangle (GVector vertices[]) | |
| Initializes to a three-vertex array. | |
| void | GetPlane (GPlane *plane)const |
| Gets the plane which the triangle is on. More... | |
| void | Reverse () |
| Reverses the direction of the vertices. More... | |
| bool | Contains (const GVector &point) |
| Returns true if the point is on the triangle. | |
| int8 | Intersects (const GLine &line) |
| Finds whether or not the line intersects the triangle, and from which side if so. More... | |
| GVector& | operator[] (int index) |
| Array access to vertices. | |
| const GVector& | operator[] (int index)const |
| Array access to vertices. | |
|
|
Gets the plane which the triangle is on.
|
|
|
Reverses the direction of the vertices.
|
|
|
Finds whether or not the line intersects the triangle, and from which side if so.
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000