ExtensionsCalculateCenterOfGravity Method

Calculate the center of gravity for the polygon.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static PointD CalculateCenterOfGravity(
	this IPolyClass polygon
)

Parameters

polygon  IPolyClass
Relevant polygon.

Return Value

PointD
Center of gravity

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPolyClass. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also