tinymist_std::typst::foundations::calc

Function cos

pub fn cos(angle: AngleLike) -> f64
Expand description

Calculates the cosine of an angle.

When called with an integer or a float, they will be interpreted as radians.

#calc.cos(1.5) \
#calc.cos(90deg)