Click or drag to resize

Point2dCollectionExtension.RemoveDuplicates Method (IEnumerable<Point2d>, Tolerance)

Removes duplicated points using the specified Tolerance.

Namespace:  Gile.AutoCAD.R20.Geometry
Assembly:  GeometryExtensionsR20 (in GeometryExtensionsR20.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax
public static IEnumerable<Point2d> RemoveDuplicates(
	this IEnumerable<Point2d> source,
	Tolerance tolerance
)

Parameters

source
Type: System.Collections.Generic.IEnumerable<Point2d>
The instance to which this method applies.
tolerance
Type: Tolerance
The Tolerance to be used in equality comparison.

Return Value

Type: IEnumerable<Point2d>
A sequence of distinct points.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<Point2d>. 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 source is null.
See Also