Kaim::NavTriangleRawPtr Class Reference
#include <navtrianglerawptr.h>
Identifies a single NavTriangle in a NavFloor.
This pointer is guaranteed to be valid only in the frame in which it was retrieved because its memory may be overwritten because of dynamic/ navmesh. Use NavTrianglePtr instead. This class is used internally for some performance and working memory usage friendliness reason (no ref-counting increment/decrement, no need to call constructor/destructor), but unless you really know what you do, prefer NavTrianglePtr which is safer.
Kaim::NavTriangleRawPtr::NavTriangleRawPtr |
( |
| ) |
|
|
inline |
KyFloat32 Kaim::NavTriangleRawPtr::GetAltitudeOfPointInTriangle |
( |
const Vec3f & |
pos | ) |
const |
Returns the altitude of the vertical projection of pos on the triangle plane.
- Precondition
- IsValid() == true.
const CellPos& Kaim::NavTriangleRawPtr::GetCellPos |
( |
| ) |
const |
|
inline |
NavFloor* Kaim::NavTriangleRawPtr::GetNavFloor |
( |
| ) |
const |
|
inline |
const NavFloorBlob* Kaim::NavTriangleRawPtr::GetNavFloorBlob |
( |
| ) |
const |
|
inline |
const NavTag& Kaim::NavTriangleRawPtr::GetNavTag |
( |
| ) |
const |
|
inline |
Retrieves the triangle NavTag.
- Precondition
- IsValid() == true.
Returns the index of the triangle within its NavFloor.
Get the triangle local to cell integer 2d coordinates.
- Precondition
- IsValid() == true.
Get the triangle world integer 2d coordinates.
- Precondition
- IsValid() == true.
void Kaim::NavTriangleRawPtr::GetVerticesPos3f |
( |
Vec3f & |
A, |
|
|
Vec3f & |
B, |
|
|
Vec3f & |
C |
|
) |
| const |
Get the triangle Navigation world coordinates.
- Precondition
- IsValid() == true.
void Kaim::NavTriangleRawPtr::GetVerticesPos3f |
( |
Triangle3f & |
triangle3f | ) |
const |
|
inline |
Get the triangle world floating point 3d coordinates.
- Precondition
- IsValid() == true.
bool Kaim::NavTriangleRawPtr::IsValid |
( |
| ) |
const |
|
inline |
Returns true if this object refers to a valid triangle.
The NavFloor that contains this triangle.
CompactNavTriangleIdx Kaim::NavTriangleRawPtr::m_triangleIdx |
The index of this triangle within its NavFloor.
The documentation for this class was generated from the following files:
- gwnavruntime/navmesh/identifiers/navtrianglerawptr.h
- gwnavruntime/navmesh/identifiers/navtrianglerawptr.cpp