tomasslavicek

Sin cos precalculation Garmin Connect IQ

Nov 12th, 2018
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. var coefX = new[60], coefY = new[60];
  2. for (var i = 0; i < 60; i++) {
  3.     coefX[i] = Math.sin(i / 30.0 * 3.14159);
  4.     coefY[i] = -Math.cos(i / 30.0 * 3.14159);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment