This document is archived and information here might be outdated. Recommended version. |
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