Advertisement
Guest User

Untitled

a guest
May 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement