pub fn cos(x: f64) -> f64
The Math.cos() static function returns the cosine of the specified angle, which must be specified in radians. This value is length(adjacent)/length(hypotenuse).
Math.cos()
MDN documentation