Function pointAtX

Calculates y where line intersects x.

  • Parameters

    • line: Line

      Line to extend

    • x: number

      Intersection of x-axis.

    Returns Point