Calculate the trigonometric cosine of an angle.
The cosine of 0:
g.cos(0);
The cosine of pi:
g.cos(Math.PI);