Skip to main content
Version: Next

getRegionSelectionSegments

Callable


  • Converts region selection points into line segments for hit testing.

    Compass annotations expose two segments from the shared origin, closed polygonal/simple-shape regions close their path, and open paths remain open.


    Parameters

    • region: RegionStore

      Region that owns the sampled points.

    • points: Point2D[]

      Selection points produced for the region.

    Returns LineSegment2D[]

    Line segments used to test intersection with a selection rectangle.