pub fn find_min_y_abs_for_x_range(
a_x: I32F32,
a_y: (I32F32, I32F32),
b_x: I32F32,
b_y: (I32F32, I32F32),
) -> (I32F32, (I32F32, I32F32))Expand description
Finds the minimum absolute y-coordinate for a range of x-values, represented by two points.
§Arguments
a_x: The x-coordinate of the first point.a_y: The range of y-values for the first point(min_y, max_y).b_x: The x-coordinate of the second point.b_y: The range of y-values for the second point(min_y, max_y).
§Returns
- A tuple of
(t_min_clamped, pos_min), where:t_min_clamped: The clamped parameter along x that minimizes the absolute y-value.pos_min: A tuple(x, y)representing the position (x-coordinate and y-coordinate) att_min.