22 Commits

Author SHA1 Message Date
Davis Claiborne
1b19619edf Formatting of vec3 isvector now matches formatting of vec2 isvector 2016-07-10 15:47:57 -04:00
Davis Claiborne
ee4ec8ba2a Fixed vec3 isvector 2016-07-10 08:34:48 -04:00
Landon Manning
cda145629d I'm an idiot
the order in which a and b appear actually matters in add/sub.
2015-12-13 06:44:02 -04:00
Landon Manning
c72efbad3c buncha goodies
* Changed add/sub in vec2/vec3 to allow for integer math
* Fixed a string display error in quat
* Other stuff that @shakesoda probably did
2015-12-13 06:16:57 -04:00
Colby Klein
4a4ad08a35 Add vec2.lerp, tests, and fix some minor bugs.
- Added missing vec2 lerp (same as vec3's)
- Added lerp to vec2 and vec3 metatable
- Added tests for vec2 (incomplete)
- Fixed vec2/number being the same as number/vec2
- Fixed vec2 constructor to match vec3's
2015-09-15 07:05:22 -07:00
Colby Klein
6a5771348c Minor doc/test updates for vec3 2015-09-13 05:51:13 -07:00
Colby Klein
fb1778e45c Update vec3 docs 2015-09-11 13:39:19 -07:00
Colby Klein
78989682cf Add LDoc documentation. Utils done. 2015-09-11 07:59:05 -07:00
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
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
54daab8ce2 Fix vec3 test failures, add unit vectors. 2015-08-15 01:06:32 -07:00
Colby Klein
871c9246d0 Back vec2 and vec3 with FFI types if possible. 2015-08-10 18:56:48 -07:00
Colby Klein
59e844dd34 Remove vec3.tuple (again?). It's a dupe of unpack 2015-07-25 19:29:11 -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
Colby Klein
e6fdd92553 Add vec3.tuple, remove some dead code 2015-07-10 12:33:31 -07:00
Colby Klein
58b3b30b4b Cleaner tostring output for vec3 2015-05-05 01:59:41 -07:00
Colby Klein
f60a7a144c remove vec3.tuple (dupe of unpack) 2015-04-25 05:50:22 -07:00
Landon Manning
00c01a985a Fixed consistancy 2015-01-16 03:54:41 -05:00
Landon Manning
d2d3c6c12f Fixed some stuff 2014-12-08 05:42:21 -04:00
Colby Klein
2b41e8debb Fix quaternion (THIS IS WHY WE NEED TESTS). Also gave vec3 a table constructor. 2014-11-11 03:46:25 -08:00
Landon Manning
bf316517df Minor refactoring
* Renamed subfolder to modules
* Quaternions no longer rely on hump.class
* Added Mesh functions
2014-10-27 20:43:45 -03:00