SHARE
TWEET

Untitled

a guest May 19th, 2017 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         double rad = angle*DEG_TO_RAD;
  2.         double rad2 = rad*rad;
  3.         double rad4 = rad2*rad2;
  4.         double rad6 = rad2*rad4;
  5.         double rad8 = rad4*rad4;
  6.         double cos = 1 - rad2/2 + rad4/24 - rad6/720 + rad8/40320;//Math.cos(angle*DEG_TO_RAD);
  7.         double sin = rad/1 - rad2*rad/6 + rad4*rad/120 - rad6*rad/5040 + rad8*rad/362880;//Math.sin(angle*DEG_TO_RAD);
RAW Paste Data
Want to get better at Java?
Learn to code Java in 2017
Top