resqpy.olio.vector_utilities.triangle_box

resqpy.olio.vector_utilities.triangle_box(triangle: ndarray) Tuple[float, float, float, float][source]

Finds the minimum and maximum x and y values of a single traingle.

Parameters

triangle (np.ndarray) – array of the traingle’s vertices’ x and y coordinates.

Returns

Tuple containing – - (float): minimum x value. - (float): maximum x value. - (float): minimum y value. - (float): maximum y value.