lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 12/17/2010 11:39 AM, en dator wrote:
So does anyone know of a library or similar that I can use, as of right now the only thing I will need is a way to do point to plane projections to calculate the distance between points in a 3d environment.

I'm assuming you know the math involved. If not, I'd be happy to help with that off-line directly. Here's a very simple full-Lua linear algebra package that I use for just that sort of thing:

-doug@amdad-~/tmp- wget -q http://www.dkrogers.com/lua/LA.zip
-doug@amdad-~/tmp- unzip LA.zip
Archive:  LA.zip
  inflating: LA.lua
  inflating: LA_test.lua
-doug@amdad-~/tmp- lua LA_test.lua
Vector ok
Matrix ok
-doug@amdad-~/tmp-

Doug