Click or drag to resize

SplineExtensionCentroid Method

Gets the centroid of a closed planar spline.

Namespace:  Gile.AutoCAD.R20.Geometry
Assembly:  GeometryExtensionsR20 (in GeometryExtensionsR20.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax
public static Point3d Centroid(
	this Spline spline
)

Parameters

spline
Type: Spline
The instance to which this method applies.

Return Value

Type: Point3d
The centroid of the spline (WCS coordinates).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Spline. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionArgumentException is thrown if spline is null.
ExceptioneNonPlanarEntity is thrown if the spline is not planar.
ExceptioneNotApplicable is thrown if the spline is not closed.
See Also