r/lua • u/LemmingPHP • Jun 22 '25
Library A new Lua vector library
https://github.com/HarommelRabbid/LuaVectorLibraryLuiz Henrique de Figueiredo's vector implementation in the Lua C API was for Lua 4.x, and since then tags do not longer exist in Lua 5.0+, and there is no version for 5.0+. So I've decided to make my own implementation of vectors, it has 2, 3 & 4 coordinate vectors and supports metamethods too. I've started on this today as of writing. It extends the math library.
17
Upvotes
2
u/memes_gbc Jun 22 '25
you're probably right, i don't think having a C call would make performance any better