Range2dSearchInterface<T> Interface
Interface for classes that implement optimized search of 2D ranges.
- Each range is associated with user data of type
T
.
Implemented by
Methods
Name | Description | |
---|---|---|
addRange(range: Readonly<WritableLowAndHighXY>, tag: T): void | Add a range to the search set, and associate the range with user data tag . |
|
searchRange2d(testRange: Readonly<WritableLowAndHighXY>, handler: (range: Range2d, tag: T) => boolean): boolean | * Search for ranges overlapping testRange. | |
searchXY(x: number, y: number, handler: (range: Range2d, tag: T) => boolean): boolean | * Search for ranges containing the xy-coordinates. | |
totalRange(result?: Range2d): Range2d | Return the overall range of all members. |
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.