angle_sc::trig

Function spherical_cosine_rule

Source
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.

See: Spherical law of cosines

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

return the length of the opposite side.