[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 2D vectors
- From: Roland <roland.yonaba@...>
- Date: Wed, 11 Jun 2014 11:18:39 -0700 (PDT)
Hi Lars,
I don't know if you are looking for a solution on the C-side, but I remember
I have some implementations of vector classes in pure Lua. They might not be
the best, but just quick modules I have written as part of some personal
projects.
See vec3.lua
<https://github.com/Yonaba/smallpt-lua/blob/e1e6831394229a6780d5a7c0d428e102e97fcf2f/core/vec3.lua>
(used in Lua port of Smallpt raytracer) and vector.lua
<https://github.com/Yonaba/character-physics-demo/blob/5689eabec224e572c686a0fc0e72360e11ba9a32/vector.lua>
(2d vectors used in a simulation of steering behaviors).
There is also this quite complete and clean module for 2d vectors, which is
part of a larger set of utilities, named HUMP. See hump.vector
<https://github.com/vrld/hump/blob/master/vector.lua> .
And last, lua-vec <https://code.google.com/p/lua-vec/> . I haven't tested
this out, though, but the API looks quite complete.
--
View this message in context: http://lua.2524044.n2.nabble.com/2D-vectors-tp7660586p7660623.html
Sent from the Lua-l mailing list archive at Nabble.com.