dtCalcPolyCenter

Derives the centroid of a convex polygon.

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

void dtCalcPolyCenter
(
    float * tc,
    const unsigned short * idx,
    int nidx,
    const float * verts
)

Remarks

Derives the centroid of a convex polygon.

Parameters

Parameter

Description

tc

The centroid of the polgyon. [(x, y, z)]

idx

The polygon indices. [(vertIndex) * nidx]

nidx

The number of indices in the polygon. [Limit: >= 3]

verts

The polygon vertices. [(x, y, z) * vertCount]

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