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)
Syntaxpublic static IEnumerable<Point2d> RemoveDuplicates(
this IEnumerable<Point2d> source,
Tolerance tolerance
)
<ExtensionAttribute>
Public Shared Function RemoveDuplicates (
source As IEnumerable(Of Point2d),
tolerance As Tolerance
) As IEnumerable(Of Point2d)
public:
[ExtensionAttribute]
static IEnumerable<Point2d>^ RemoveDuplicates(
IEnumerable<Point2d>^ source,
Tolerance tolerance
)
[<ExtensionAttribute>]
static member RemoveDuplicates :
source : IEnumerable<Point2d> *
tolerance : Tolerance -> IEnumerable<Point2d>
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).
ExceptionsException | Condition |
---|
ArgumentNullException | ArgumentException is thrown if source is null. |
See Also