Fix findRandomPointAroundCircle in Detour lib to return points inside circle

This commit is contained in:
Wojtek Figat
2021-03-01 14:37:19 +01:00
parent 99bc3289e8
commit e218cc417f
3 changed files with 17 additions and 5 deletions

View File

@@ -417,6 +417,8 @@ bool dtDistancePtPolyEdgesSqr(const float* pt, const float* verts, const int nve
float dtDistancePtSegSqr2D(const float* pt, const float* p, const float* q, float& t);
float dtDistancePtPtSqr2D(const float* pt, const float* p);
/// Derives the centroid of a convex polygon.
/// @param[out] tc The centroid of the polgyon. [(x, y, z)]
/// @param[in] idx The polygon indices. [(vertIndex) * @p nidx]