Class ExtendedEnumerable
Inheritance
System.Object
ExtendedEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Syntax
public static class ExtendedEnumerable
Methods
| Improve this Doc View SourceToKnot(IEnumerable<Double>)
Transforms a set of double into a KnotVector.
Declaration
public static KnotVector ToKnot(this IEnumerable<double> enumerable)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Double> | enumerable | Sets of values. |
Returns
Type | Description |
---|---|
KnotVector |
ToVector(IEnumerable<Double>)
Transforms a set of double into a Vector.
Declaration
public static Vector ToVector(this IEnumerable<double> enumerable)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Double> | enumerable | Sets of values. |
Returns
Type | Description |
---|---|
Vector | A Vector |
Unique<T>(IEnumerable<T>, Func<T, T, Boolean>)
Obtains the unique set of elements in an array.
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/how-to-add-custom-methods-for-linq-queries
Declaration
public static List<T> Unique<T>(this IEnumerable<T> enumerable, Func<T, T, bool> comparisonFunc)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | enumerable | A collection of things. |
System.Func<T, T, System.Boolean> | comparisonFunc | Function comparing two elements of the collection. Returning true if the comparison is confirmed. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T> | Collection of unique elements. |
Type Parameters
Name | Description |
---|---|
T |