17 Commits

Author SHA1 Message Date
Matthew Blanchard
f4163b9893 Pruned mat4. Added quat.mul_vec3. 2015-12-28 11:11:45 -05:00
Landon Manning
437ac9135e Reimplemented quat*vec3, quat/quat, and quat/number
Fixed a few minor things in vec2 and vec3
2015-12-28 10:15:05 -04:00
Matthew Blanchard
85655e65af Refactored quat and added doc comments. Fixed some small typos and doc comments in vec2. 2015-12-25 20:06:31 -05:00
Landon Manning
71af8f5498 Rewrote quaternion module
Untested, but I hope it works!
2015-12-22 05:27:22 -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
951aea865f Proper fix for the quat.to_axis_angle bug.
Apparently, I was getting a number so close to -1 (but just under) that
it just printed as -1. Fuck off.
2015-09-14 13:35:01 -07:00
Colby Klein
18dd29d1b5 Work around math.acos(-1) returning NaN on LuaJIT... sometimes. 2015-09-14 13:26:05 -07:00
Colby Klein
78989682cf Add LDoc documentation. Utils done. 2015-09-11 07:59:05 -07:00
Colby Klein
88e8ebc3de Add quaternion.unpack. Now vec2/3/quat all have it. 2015-07-25 19:31:14 -07:00
Colby Klein
7cdca018aa Add quat.cross, fix quat.rotate, cleanup. 2015-07-10 12:25:39 -07:00
Colby Klein
2b3f8bc31b Add quat:clone() 2015-05-05 02:03:02 -07:00
Landon Manning
3b53764662 I thought I updated this... 2015-04-18 06:01:24 -03:00
Landon Manning
a1723f5028 More consistency! 2015-01-16 04:14:40 -05:00
Landon Manning
d2d3c6c12f Fixed some stuff 2014-12-08 05:42:21 -04:00
Landon Manning
c2d8e814a7 Added linear interpolation to quaternion module
* lerp
* nlerp
* slerp
2014-12-07 01:08:15 -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