Skip to main content
Version: Next

doSelectionRectAndRegionPointsIntersect

Callable


  • Tests whether a selection rectangle intersects sampled region geometry.

    The test checks contained points first, then segment intersections. When no segments are supplied, it falls back to bounding-rectangle overlap.


    Parameters

    • selectionRect: Rect2D

      Axis-aligned selection rectangle.

    • points: Point2D[]

      Sampled region points.

    • segments: LineSegment2D[]

      Region segments connecting sampled points.

    Returns boolean

    True when the selection rectangle intersects the sampled geometry.