And to make it even faster

Jump to navigation Jump to search
Revision as of 23 September 2017 at 12:33.
This is the thread's initial revision.

And to make it even faster

       double x = bulletSpeed;
       double a = -3.508129323E-5;
       double b = 2.460363294E-3;
       double c = -6.666318894E-2;
       double d = 8.545020365E-1;
       double e = -3.337830707;
       double angle = a * x * x * x * x + b * x * x * x + c * x * x + d * x + e;
       return Math.sin(angle) / (bulletSpeed / 8 - Math.cos(angle));
    Xor (talk)13:33, 23 September 2017