Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

cos

Calculates the cosine of an angle.

Arguments

  • a - Angle in radians

Returns

Cosine value in range -1, 1

Fully qualified path: cairo_fp::f128::math::trig::cos

fn cos(a: Fixed) -> Fixed