pub fn y_coord_in_rect<X, Y>(
    (x1, y1): (X, Y),
    (x2, y2): (X, Y),
    x: X
) -> Result<Y, ArithmeticError>
where X: BaseArithmetic + FixedPointOperand, Y: BaseArithmetic + FixedPointOperand,
Expand description

Returns the coordinate y for coordinate x, in a function given by 2 points: (x1, y1) and (x2, y2)