Click or drag to resize

KdTreeT Constructor

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)
Syntax
public KdTree(
	IEnumerable<T> source,
	Func<T, Point3d> getPosition,
	int dimension
)

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
ExceptionCondition
ArgumentNullExceptionThrown if source is null.
ArgumentNullExceptionThrown if getPosition is null.
ArgumentOutOfRangeExceptionThrown if dimension is lower than2 or greater than 3.
See Also