Here you can find the source of cos(float angle)
public static float cos(float angle)
//package com.java2s; //License from project: Open Source License public class Main { public static float cos(float angle) { return (float) Math.cos(angle); }//from w w w. j a v a2 s.co m }