This document is archived and information here might be outdated.  Recommended version.


ITinTriangle.QueryCentroid Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinTriangle.QueryCentroid Method

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 pCentroid
pCentroid 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

See Also

ITinTriangle Interface