The centroid of the specified triangle as determined by averaging the coordinates of its vertices.
[Visual Basic .NET] Public Sub QueryCentroid ( _ ByVal pCentroid As IPoint _ )
[C#] public void QueryCentroid ( IPoint pCentroid );
[C++]
HRESULT QueryCentroid(
IPoint* pCentroid
);
[C++]Parameters
pCentroidpCentroid is a parameter of type IPoint
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Description
Writes the triangle centroid, as defined by averaging its node coordinates, to an existing Point object. You must instantiate the Point before calling QueryCentroid. For example,
Dim pPoint as IPoint
Set pPoint = New Point