angle_sc::trig

Function cosine

Source
pub fn cosine(angle: Radians, sin: UnitNegRange) -> UnitNegRange
Expand description

Calculate the cosine of an angle in Radians using the sine of the angle.

Corrects cos π/4 to 1/√2.