Function line_intersection_y

  • Get the intersection of a line with a horizontal line at y = yi

    Parameters

    • l: Diagram

      a line Diagram

    • yi: number

      y value of the horizontal line

    Returns Vector2

    the intersection point