Click or drag to resize

QuadTreeTItem(Int32, Int32, Int32, Int32, FuncTItem, RectangleD2D) Constructor

Creates a quad tree for the specified rectangular boundaries. See remarks for further instructions how to choose the boundaries.

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public QuadTree(
	int x,
	int y,
	int width,
	int height,
	Func<TItem, RectangleD2D> EvaluateItemBounds
)

Parameters

x  Int32
The top-left position of the area rectangle.
y  Int32
The top-right position of the area reactangle.
width  Int32
The width of the area rectangle.
height  Int32
The height of the area rectangle.
EvaluateItemBounds  FuncTItem, RectangleD2D
A function that evaluates the item's bounding rectangle. The area of the returned rectangle may be small, but should not be empty.
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