Math 2D Plugin Update

Hello all.  
 
I should have posted this yesterday, as someone has already been bitten by my mistake.  
 
So, let me do so now in the hope that I’ll prevent any further issues.
 
 
I am updating the math2d plugin:

  • Now it is native (and much faster). benchmarks
  • Now it has more features.
  • It will be paid soon.

The docs for the new version can be found here: https://roaminggamer.github.io/RGDocs/pages/Plugins/math2d/
 
Note 1: Any references marked with this icon apply to the new and old versions of Math2D:
legacy.png
 
Note 2: I have NOT changed the way the library works or the function signatures, so once I iron out my mistake with the android build this should be transparent.
 
Note 3:  Yes, i said this is going paid, but there will still be a free version. The free version is still Pure-Lua and has the original features: https://github.com/roaminggamer/math2d_legacy
 
To continue using the free Lua version:
 

  1. Download math2d.lua here: https://github.com/roaminggamer/math2d_legacy

  2. Copy math2d.lua to your root folder (same as main.lua)

  3. Change your require statements from:

    require “plugin.math2d”

to:

require "math2d"
  1. In build.settings, comment out the plugins line for math2d:

    –[“plugin.math2d”] = { publisherId = “com.roaminggamer” },

-Ed M. (AKA The Roaming Gamer)

** Problems resolved as of 1210 PST - 15 OCT 2016 **

Nice to see, that native estimation are so much faster.

And it’s great, that the pure LUA version is still available.

Anyways, I think you could have optimized your pure LUA version even more in some situations, non the less it cannot compete with the native version. (for example using ^0.5 instead of math.sqrt or by replacing math.rad with a precalculated multiplication)

Keep up the great work for the community :slight_smile:

** Problems resolved as of 1210 PST - 15 OCT 2016 **

Nice to see, that native estimation are so much faster.

And it’s great, that the pure LUA version is still available.

Anyways, I think you could have optimized your pure LUA version even more in some situations, non the less it cannot compete with the native version. (for example using ^0.5 instead of math.sqrt or by replacing math.rad with a precalculated multiplication)

Keep up the great work for the community :slight_smile: