9 Commits

Author SHA1 Message Date
Landon Manning
449bf861d4 Added ability to divide a number over a vector.
Example: `local s = 1/scale`
2015-09-09 23:14:33 -03:00
Colby Klein
9458738e11 Switch vec2*vec2 to per-component, add vec2.dot 2015-09-01 15:06:31 -07:00
Colby Klein
d198d7f97f Backout some FFI code - didn't work. 2015-08-25 11:10:18 -07:00
Colby Klein
cb41f1c4a7 Don't explode if the module has been hot reloaded.
Argh, struct redefinition errors. I'm glad that you can pcall this at
least.
2015-08-19 14:30:48 -07:00
Colby Klein
871c9246d0 Back vec2 and vec3 with FFI types if possible. 2015-08-10 18:56:48 -07:00
Colby Klein
2869d51035 Fix vec2/vec3.angle_to
I'm not sure of this is technically more correct, actually, but after
this fix I get the expected results.
2015-07-25 07:19:53 -07:00
Landon Manning
00c01a985a Fixed consistancy 2015-01-16 03:54:41 -05:00
Colby Klein
503572336d vec2.normalized -> vec2.normalize 2015-01-13 03:23:37 -08:00
Landon Manning
f5e93a3ea5 Snagged vec2 from @vrld's HUMP library
This was the original basis of vec3, so why not add it in, too?
2014-12-21 00:51:14 -05:00