This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinTriangle Interface > ITinTriangle.QueryCentroid Method (ArcObjects .NET 10.5 SDK) |
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
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