Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Detour/DetourCommon.h |
Include |
#include "Detour/DetourCommon.h" |
Source |
/Engine/Source/Runtime/Navmesh/Private/Detour/DetourCommon.cpp |
bool dtPointInPolygon
(
const float * pt,
const float * verts,
const int nverts
)
Determines if the specified point is inside the convex polygon on the xz-plane.
All points are projected onto the xz-plane, so the y-values are ignored.
True if the point is inside the polygon.
Parameter |
Description |
---|---|
pt |
The point to check. [(x, y, z)] |
verts |
The polygon vertices. [(x, y, z) * nverts] |
nverts |
The number of vertices. [Limit: >= 3] |