searchRange2d Method

  • Search for ranges overlapping testRange
  • Pass each range and tag to handler
  • terminate search if handler returns false.

searchRange2d(testRange: Readonly<WritableLowAndHighXY>, handler: (range: Range2d, tag: T) => boolean): boolean

@returns false if search terminated by handler. Return true if no handler returned false.

Parameter Type Description
testRange Readonly<WritableLowAndHighXY> search range.
handler (range: Range2d, tag: T) => boolean function to receive range and tag hits.

Returns - boolean

false if search terminated by handler. Return true if no handler returned false.

Defined in

Last Updated: 14 November, 2024