angle_sc::trig

Function spherical_hypotenuse_length

Source
pub fn spherical_hypotenuse_length(a: Radians, b: Radians) -> Radians
Expand description

Calculates the length of the hypotenuse in a right angled spherical triangle, given the length of both sides.

See: Spherical law of cosines

  • a, b the lengths of the sides adjacent to the right angle.

returns the length of the hypotenuse.