Function NavmeshCutJobs.ApproximateCircleWithPolylineRadius

ApproximateCircleWithPolylineRadius (float radius, int resolution)

Adjust the radius so that the contour better approximates a circle.

Private Static
float ApproximateCircleWithPolylineRadius (

float

radius

int

resolution

)

Adjust the radius so that the contour better approximates a circle.

Instead of all points laying exactly on the circle, which means all of the contour is inside the circle, we change it so that half of the contour is inside and half is outside.

Returns the new radius