Creates a new instance of KdTree.
Namespace:
Gile.AutoCAD.R20.Geometry
Assembly:
GeometryExtensionsR20 (in GeometryExtensionsR20.dll) Version: 2.2.0.0 (2.2.0.0)
Syntaxpublic KdTree(
IEnumerable<T> source,
Func<T, Point3d> getPosition,
int dimension
)
Public Sub New (
source As IEnumerable(Of T),
getPosition As Func(Of T, Point3d),
dimension As Integer
)
public:
KdTree(
IEnumerable<T>^ source,
Func<T, Point3d>^ getPosition,
int dimension
)
new :
source : IEnumerable<'T> *
getPosition : Func<'T, Point3d> *
dimension : int -> KdTree
Parameters
- source
- Type: System.Collections.GenericIEnumerableT
The collection of objects to fill the tree. - getPosition
- Type: SystemFuncT, Point3d
A function which returns the position of the object. - dimension
- Type: SystemInt32
The dimension of the tree (2 or 3)
ExceptionsException | Condition |
---|
ArgumentNullException | Thrown if source is null. |
ArgumentNullException | Thrown if getPosition is null. |
ArgumentOutOfRangeException | Thrown if dimension is lower than2 or greater than 3. |
See Also