Ad
  • Custom User Avatar

    Math might appear to be correct, but unfortunately the implementation itself has more than one issue. Use of floating point values in some places (mostly Math.Pow(someDouble, 2)) causes you to lose precision of your calculations.