resqpy.olio.vector_utilities.vertical_intercept_nan_yz

resqpy.olio.vector_utilities.vertical_intercept_nan_yz(x: float, x_0: float, x_1: float, y_0: float, y_1: float, z_0: float, z_1: float) Tuple[float, float][source]

Finds the y & z values of a straight line between two points at a given x.

If the x value given is not within the x values of the points, returns NaN.

Parameters
  • x (float) – x value at which to determine the y value

  • x_0 (float) – the x coordinate of point a

  • x_1 (float) – the x coordinate of point b

  • y_0 (float) – the y coordinate of point a

  • y_1 (float) – the y coordinate of point b

  • z_0 (float) – the z coordinate of point a

  • z_1 (float) – the z coordinate of point b

Returns

y, z (float, float)

y & z values of the straight line segment between point a and point b,

evaluated at x; if x is outside the x values range, y & z are NaN