Creates a new instance of KdTree.
Namespace:
Gile.AutoCAD.Geometry
Assembly:
GeometryExtensions (in GeometryExtensions.dll) Version: 2.1.0.0 (2.1.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)
Exceptions
See Also