Kaim::PathFinderQueryUtils Class Reference
#include <pathfinderqueryutils.h>
This class is an helper used internaly by the PathFinder Queries to factorize Code.
Inherits Kaim::QueryUtils.
|
Database * | GetDatabase () |
|
WorkingMemory * | GetWorkingMemory () |
|
void * | GetTraverseLogicUserData () |
|
bool Kaim::QueryUtils::FindTriangleFromPositionIfNotValid |
( |
NavTrianglePtr & |
navTrianglePtr, |
|
|
const Vec3f & |
pos, |
|
|
const PositionSpatializationRange & |
positionSpatializationRange |
|
) |
| |
|
inherited |
Checks the validity of the specified triangle.
If the triangle is not valid, this method tries to retrieve a valid triangle ID from the specified position. If a valid triangle is found, it updatesnavTrianglePtr.
- Parameters
-
[in,out] | navTrianglePtr | The triangle to test. If the triangle is invalid and a valid triangle is found, this parameter will be updated with the ID of the new triangle. |
| pos | The position used to retrieve a new triangle, if needed. |
| positionSpatializationRange | The maximum difference in altitude between pos and the returned triangle. |
- Returns
- true if the input triangle is valid or if navTrianglePtr was updated, otherwise false.
bool Kaim::QueryUtils::FindTriangleFromPositionIfNotValid |
( |
NavTrianglePtr & |
navTrianglePtr, |
|
|
const Vec3f & |
pos, |
|
|
const PositionSpatializationRange & |
positionSpatializationRange, |
|
|
WorldIntegerPos & |
outputIntegerPos |
|
) |
| |
|
inherited |
Checks the validity of the specified triangle.
If the triangle is not valid, this method tries to retrieve a valid triangle ID from the specified position. If a valid triangle is found, it updatesnavTrianglePtr.
- Parameters
-
[in,out] | navTrianglePtr | The triangle to test. If the triangle is invalid and a valid triangle is found, this parameter will be updated with the ID of the new triangle. |
| pos | The position used to retrieve a new triangle, if needed. |
| positionSpatializationRange | The maximum difference in altitude between pos and the returned triangle. |
[out] | outputIntegerPos | Stores the integer position of the returned triangle, or of pos if the original triangle was valid. |
- Returns
- true if the input triangle is valid or if navTrianglePtr was updated, otherwise false.
bool Kaim::QueryUtils::FindTriangleFromPositionIfNotValid |
( |
NavTrianglePtr & |
navTrianglePtr, |
|
|
const Vec3f & |
pos, |
|
|
const WorldIntegerPos & |
integerPos, |
|
|
const PositionSpatializationRange & |
positionSpatializationRange |
|
) |
| |
|
inherited |
Checks the validity of the specified triangle.
If the triangle is not valid, this method tries to retrieve a valid triangle ID from the specified position. If a valid triangle is found, it updatesnavTrianglePtr.
- Parameters
-
[in,out] | navTrianglePtr | The triangle to test. If the triangle is invalid and a valid triangle is found, this parameter will be updated with the ID of the new triangle. |
| pos | The position used to retrieve a new triangle, if needed. Only the altitude of this position is used. |
[in] | integerPos | Provides the (x,y) coordinates of the desired position. |
| positionSpatializationRange | The maximum difference in altitude between pos and the returned triangle. |
- Returns
- true if the input triangle is valid or if navTrianglePtr was updated, otherwise false.
Check if the specified half edge intersects the specified thin capsule.
- Parameters
-
halfEdge | The half edge to check. |
capsuleStartCoordPos | The capsule start position expressed in CoordPos64. |
capsuleEndCoordPos | The capsule end position expressed in CoordPos64. |
capsuleSquareRadius | The capsule square radius, expressed in integer. |
recoveryDistance | The distance the start position is moved forward or the end position is moved backward when they are too close from the halfEdge. |
- Precondition
- The radius must be less than PixelSize / 3.
The Database taken into account by queries made through this object. Do not modify.
WorkingMemory* Kaim::QueryUtils::m_workingMemory |
|
inherited |
Contains memory buffers used for performing queries and storing results. For internal use. Do not modify.
The documentation for this class was generated from the following files: