#include <triangle3i.h>
This class represents a triangle in three-dimensional space, whose dimensions are stored using integer values.
This class is used primarily during NavData generation.
Public Member Functions | |
void | Set (const Vec3i &_a, const Vec3i &_b, const Vec3i &_c) |
Vec3i & | operator[] (KyInt32 i) |
const Vec3i & | operator[] (KyInt32 i) const |
KyUInt32 | IsInside2d (const Vec2i &M) const |
bool | IsInside2d_NoFlat (const Vec2i &M) const |
bool | IsStrictlyInside2d (const Vec2i &M) const |
Public Data Members | |
Vec3i | A |
Vec3i | B |
Vec3i | C |
Returns true if the (X,Y) coordinates of the specified point lie inside the (X,Y) extents of the triangle, or exactly on one edge of the triangle.
|
inline |
Returns true if the (X,Y) coordinates of the specified point lie inside the (X,Y) extents of the triangle, or exactly on one edge of the triangle.
This method assumes that the plane of the triangle is not horizontal.
|
inline |
Returns true if the (X,Y) coordinates of the specified point lie strictly inside the (X,Y) extents of the triangle.
Retrieves the coordinates of the specified corner of the triangle. Use only [0], [1], or [2].
Retrieves the coordinates of the specified corner of the triangle. Use only [0], [1], or [2].
Sets the coordinates of the three points that make up the triangle.
_a | The coordinates of the first corner of the triangle. |
_b | The coordinates of the second corner of the triangle. |
_c | The coordinates of the third corner of the triangle. |
Vec3i Kaim::Triangle3i::A |
The position of the first corner of the triangle.
Vec3i Kaim::Triangle3i::B |
The position of the second corner of the triangle.
Vec3i Kaim::Triangle3i::C |
The position of the third corner of the triangle.