Function angle_sc::trig::sincosd

source ·
pub fn sincosd(degrees: Degrees) -> (UnitNegRange, UnitNegRange)
Expand description

Calculate the sine and cosine of an angle from a value in Degrees.
Note: calculates the cosine of the angle from its sine and overrides the sine and cosine for ±30° and ±45° to their correct values.

  • degrees the angle in Degrees

returns sine and cosine of the angle as UnitNegRanges.