GeometryGetCentroid Method |
Computes the centroid of this geometry.
Namespace:
Aspose.Gis.Geometries
Assembly:
Aspose.GIS (in Aspose.GIS.dll) Version: 20.3.0.0 (20.03)
Syntaxpublic IPoint GetCentroid()
Public Function GetCentroid As IPoint
public:
virtual IPoint^ GetCentroid() sealed
abstract GetCentroid : unit -> IPoint
override GetCentroid : unit -> IPoint
Return Value
Type:
IPoint
The centroid of this geometry. If this geometry is empty an empty point returned.
The centroid is equal to the centroid of the highest dimension geometries in this geometry
(e.g. if both points and lines are contained in the geometry, only lines contribute to centroid).
Implements
IGeometryGetCentroid
See Also