Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SweepLine

Sweep Line algorithm

Hierarchy

  • SweepLine

Index

Constructors

constructor

Methods

add

find

intersect

remove

Static xyOrder

Static yValueAtX

  • yValueAtX(segment: Segment, x: number): number
  • Get the segment y value at the x location by calculating the line slope

    Parameters

    • segment: Segment

      segment

    • x: number

      current point x value

    Returns number

    segment y value

Generated using TypeDoc