angle_sc::trig

Function arctan2

Source
pub fn arctan2(sin: UnitNegRange, cos: UnitNegRange) -> Radians
Expand description

Accurately calculate an angle in Radians from its sine and cosine.

  • sin, cos the sine and cosine of the angle in UnitNegRanges.

returns the angle in Radians.