Table of Contents

Property Centroid

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Centroid

Gets the geometric centroid of the polygon.

public GeoPoint2 Centroid { get; }

Property Value

GeoPoint2

Remarks

The centroid weighs the area however small: the L 0.001 by 0.001 with legs 0.00025 wide, of 4.4E-7 square units, balances at (0.000339, 0.000339), where an area of a millionth or less was taken for none and the corners were averaged to (0.000417, 0.000417). Only a polygon whose area is lost in the rounding of its coordinates, its corners on one line, has none, and its corners are averaged.