y_on_line

Contents

y_on_line#

eoio.utils.crs_utils.y_on_line(p1: Tuple[float | int, float | int], p2: Tuple[float | int, float | int], x: float | int) float | int[source]#

Return y on line between two points for a given x

Parameters:
  • p1 – first point on line (x, y)

  • p2 – second point on line (x, y)

  • x – x value of desired output point

Returns:

Y value on the line defined by p1 and p2.