pub fn calculate_adjacent_length(length: f64, hypotenuse: f64) -> f64
Expand description
Calculates the length of the other side in a right angled triangle, given the length of one side and the hypotenuse.
See: Pythagorean theorem
length
the length of a side.hypotenuse
the length of the hypotenuse
returns the length of the other side. zero if length >= hypotenuse or the hypotenuse if length <= 0.