Math.cos(x) returns the cosine of x (given in radians):
Angle in radians = (angle in degrees) * PI / 180.