angle_sc::trig

Function spherical_adjacent_length

Source
pub fn spherical_adjacent_length(a: Radians, c: Radians) -> Radians
Expand description

Calculates the length of the other side in a right angled spherical triangle, given the length of one side and the hypotenuse.

See: Spherical law of cosines

  • a the length of a side.
  • c the length of the hypotenuse

returns the length of the other side. zero if a >= c or c if a <= 0.