hypot

Function hypot 

Source
pub fn hypot<F: Float>(lhs: Line<F>, rhs: Line<F>) -> Line<F>
Expand description

Computes the hypotenuse of a right triangle given the lengths of the other two sides.

This function computes sqrt(x² + y²) in a numerically stable way that avoids overflow and underflow issues.