Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double rad = angle*DEG_TO_RAD;
- double rad2 = rad*rad;
- double rad4 = rad2*rad2;
- double rad6 = rad2*rad4;
- double rad8 = rad4*rad4;
- double cos = 1 - rad2/2 + rad4/24 - rad6/720 + rad8/40320;//Math.cos(angle*DEG_TO_RAD);
- 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