ExtensionsCalculateCenterOfGravity Method
Calculate the center of gravity for the polygon.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static PointD CalculateCenterOfGravity(
this IPolyClass polygon
)
<ExtensionAttribute>
Public Shared Function CalculateCenterOfGravity (
polygon As IPolyClass
) As PointD
public:
[ExtensionAttribute]
static PointD CalculateCenterOfGravity(
IPolyClass^ polygon
)
[<ExtensionAttribute>]
static member CalculateCenterOfGravity :
polygon : IPolyClass -> PointD
- polygon IPolyClass
- Relevant polygon.
PointDCenter of gravityIn 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).