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


ITinTriangle.QueryCentroid Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinTriangle Interface > ITinTriangle.QueryCentroid Method
ArcGIS Developer Help

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