Hey Everyone,
I've been looking around for a math library that defines vectors and vector operations, addition, subtraction, dot product, magnitude, normalization etc. I've looked a bit at the Love engine wiki and it didn't seem like there was anything of that sort there. Plus the standard Lua library doesn't include vectors and their operations.
What library do you guys use? Which one is recommended?
Lua Linear Algebra Libraries?
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Lua Linear Algebra Libraries?
Personally I use hump.vector (code). Someone has been working on a library which mirrors the GLSL vector syntax and functions, so I might use that once it's finished and stable.
Re: Lua Linear Algebra Libraries?
Thanks. This is exactly what i'm looking for.slime wrote:Personally I use hump.vector (code). Someone has been working on a library which mirrors the GLSL vector syntax and functions, so I might use that once it's finished and stable.
Re: Lua Linear Algebra Libraries?
I wrote the the other day. I'll put it in a repo soon. It supports vectors with 1~4 components.
http://paste2.org/p/1968108
http://paste2.org/p/1968108
Who is online
Users browsing this forum: pgimeno and 2 guests