30 Commits

Author SHA1 Message Date
karai17
b3be2a154a unfactor quat 2016-12-14 20:22:22 -04:00
Colby Klein
7e46afa280 make quat.from_direction's up argument optional (defaults to +z) 2016-12-13 15:12:17 -08:00
karai17
69f30173b8 Fixed quat.lerp 2016-08-14 15:39:24 -03:00
karai17
799e1607bc Updated to work outside of a sanitized environment. 2016-08-14 03:36:36 -03:00
karai17
ebae3a1fce Updated mat4 LDocs 2016-07-24 22:16:04 -03:00
karai17
52eb8af61d More LDoc tidying 2016-07-24 20:57:59 -03:00
karai17
5f7a7f29fa Added quaternion tests
* Fixed an issue with is_quat, is_vec3, is_vec2, and is_mat4 methods
* Fixed a minor issue with local variables being declared too late
2016-07-21 20:04:32 -03:00
karai17
2950352ac8 Updated color module, etc. 2016-07-20 22:17:25 -03:00
karai17
2aa0e7fcb6 Cleaned up internal code to be less verbose 2016-07-20 18:24:54 -03:00
karai17
4f9bc17bf4 Refactored mat4
Did some tidying up on quat, vec2, vec3, and utils
2016-07-19 23:55:21 -03:00
karai17
46f8261ea0 Refactored mat4 (in progress)
Cleaned up vec2, vec3, quat
2016-07-18 06:17:42 -03:00
Landon Manning
5da09ddd8b removed ray_triangle2, it was too slow
also moved some vec3 definitions outside their respective function
bodies to speed thing sup and create less garbage
2015-12-29 04:58:53 -04:00
Landon Manning
2347bd9706 Looks like we don't need quat.div after all. 2015-12-28 12:40:52 -04:00
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