A geometry math class for expressing a triangle in 3D space. More...
#include <triangle.h>
Public Member Functions | |||
Triangle3D () | |||
Blank constructor. | |||
Triangle3D (const Vector3 &A, const Vector3 &B, const Vector3 &C) | |||
Descriptive constructor. More... | |||
LineSegment3D | GetOverlap (const Triangle3D &Other) const | ||
Gets the overlap of two triangles. More... | |||
Vector3 & | operator[] (const Whole &Index) | ||
Gets the point in this triangle corresponding to the specified index.
| |||
const Vector3 & | operator[] (const Whole &Index) const | ||
Gets the point in this triangle corresponding to the specified index.
| |||
Public Attributes | |
Vector3 | PointA |
The first point in space making the triangle. | |
Vector3 | PointB |
The second point in space making the triangle. | |
Vector3 | PointC |
The third point in space making the triangle. | |
A geometry math class for expressing a triangle in 3D space.
Definition at line 96 of file triangle.h.
Descriptive constructor.
A | The first point in space making the triangle. |
B | The second point in space making the triangle. |
C | The third point in space making the triangle. |
Definition at line 168 of file triangle.cpp.
LineSegment3D Mezzanine::Triangle3D::GetOverlap | ( | const Triangle3D & | Other | ) | const |
Gets the overlap of two triangles.
Other | The other triangle to compare with. |
Definition at line 177 of file triangle.cpp.
Gets the point in this triangle corresponding to the specified index.
If | the index passed in is greater than 2, a PARAMETERS_RANGE_EXCEPTION will be thrown. |
Index | The index of the point to retrieve. |
Definition at line 288 of file triangle.cpp.
Gets the point in this triangle corresponding to the specified index.
If | the index passed in is greater than 2, a PARAMETERS_RANGE_EXCEPTION will be thrown. |
Index | The index of the point to retrieve. |
Definition at line 301 of file triangle.cpp.