I wrote this quite a while ago, but for some reason didn't think of making it available until
@ar2rsawseen mentioned it. I agree with
@OZApps that it should be built in to Gideros, and maybe it will be eventually. But in the meantime, here's my implementation of a Vector2 class similar to those found in other frameworks. It uses Lua overloading so you can add, subtract, multiply, divide, compare, concatentate and print the vectors. It also includes a method for calculating distance to other Vector2 points. The code is on my GitHub along with a really quick sample project.
https://github.com/nshafer/Vector2Thanks,
Nathan Shafer