dtPointInPolygon

Determines if the specified point is inside the convex polygon on the xz-plane.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourCommon.h

Include

#include "Detour/DetourCommon.h"

Source

/Engine/Source/Runtime/Navmesh/Private/Detour/DetourCommon.cpp

Syntax

bool dtPointInPolygon
(
    const float * pt,
    const float * verts,
    const int nverts
)

Remarks

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.

Returns

True if the point is inside the polygon.

Parameters

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]

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss