QuadTreeTItem(RectangleD2D, FuncTItem, RectangleD2D, Int32) Constructor |
Creates a quad tree for the specified rectangular boundaries.
Namespace: Altaxo.GeometryAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public QuadTree(
RectangleD2D rect,
Func<TItem, RectangleD2D> EvaluateItemBounds,
int maximumNumberOfItemsPerNode
)
Parameters
- rect RectangleD2D
- The rectangular boundaries of this quad. See remarks for further instructions.
- EvaluateItemBounds FuncTItem, RectangleD2D
- A function that evaluates the rectangular boundaries for each item. The area of the returned rectangle may be small, but should not be empty.
- maximumNumberOfItemsPerNode Int32
- The maximum number of item that on node should store.
Remarks If you create a quad tree, choose the boundaries so that all items that you intend to add to this quad tree
will intersect with the boundary rectangle. Items that will not intersect will be not added!!
See Also