pub fn spherical_cosine_rule(
    cos_angle: UnitNegRange,
    length: Radians
) -> Radians
Expand description

Calculate the length of the adjacent side of a right angled spherical triangle, given the cosine of the angle and length of the hypotenuse. @pre 0 <= length < PI_2

  • cos_angle the cosine of the adjacent angle.
  • length the length of the hypotenuse

return the length of the opposite side.