Math.cos() returns the cosine of an angel given in radians.
To use degrees, convert the degrees to radians first: