Property Centroid
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Centroid
Gets the geometric centroid of the loop.
public GeoPoint2 Centroid { get; }
Property Value
Remarks
Exact rather than an approximation of the arcs: the centroid of the straight loop through the vertices, weighted against the centroid of each piece an arc cuts off its own chord.
The straight loop runs through every vertex, however near the next: at a millionth, the rectangle 100 by 50 with its corner (100, 50) rounded by 0.0005 has its centroid at (50, 25) to a billionth, where the vertices were merged within the global tolerance of a thousandth, the end of the arc went, and the centroid was 0.00008 off. An arc of any radius weighs in too, where one of radius 0.00001 or less was left out of the sum.