206 Commits

Author SHA1 Message Date
karai17
d1a2c8c94b fixed mat4.__mul 2016-07-20 00:09:17 -03:00
karai17
bff981aa70 typo 2016-07-20 00:08:34 -03:00
karai17
5bee88b943 Fixed mat4.project and mat4.unproject 2016-07-20 00:07:49 -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
f9d31b20fb Fixed a typo 2016-07-18 06:21:43 -03:00
karai17
46f8261ea0 Refactored mat4 (in progress)
Cleaned up vec2, vec3, quat
2016-07-18 06:17:42 -03:00
karai17
6ced5f397e Removed unneeded do blocks from tests 2016-07-15 22:19:22 -03:00
karai17
add0a71c05 Added tests for vec2 and vec3 2016-07-15 22:07:48 -03:00
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
f264ec92ff Merge pull request #15 from Trebgarta/master
Shear
2016-06-14 13:01:57 -03:00
Doruk Turak
42eedb9e71 Style 2016-06-14 18:01:08 +02:00
Doruk Turak
4922c0f48d Shear: Default values as 0 2016-06-14 17:42:22 +02:00
Doruk Turak
c03a16568e added shear 2016-06-14 16:52:10 +02:00
Colby Klein
7f7ff0077a Fix mat4 typos. 2016-04-13 21:57:39 -07:00
Colby Klein
0eb8d30271 Merge branch 'master' of https://github.com/excessive/cpml into refactor 2016-04-13 21:50:22 -07:00
Colby Klein
3f6c49ee0c Delete vec3-turbo.lua
This file is completely obsolete; use the refactor branch vec3 instead.
2016-02-17 21:11:18 -08:00
Colby Klein
b8cc7e1d22 Disable luacheck in travis script. 2016-02-17 20:23:39 -08:00
Colby Klein
a76feb15ba Update .travis.yml
Let's try out kikito's travis stuff to see if it works better.
2016-02-17 20:20:26 -08:00
Matthew Blanchard
a3ac895517 Merge pull request #14 from Bobbyjoness/patch-1
Fixed redundant requiring of ffi
2016-01-01 22:29:02 -05:00
Bobbyjoness
ffe3d4b083 Fixed redundant requiring of ffi 2016-01-01 21:58:38 -05:00
Landon Manning
1033713b33 added DBL_EPSILON 2015-12-29 05:42:25 -04: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
c42a3efc07 Added conversion between polar and cartesian coordinates 2015-12-28 19:26:19 -04:00
Landon Manning
2347bd9706 Looks like we don't need quat.div after all. 2015-12-28 12:40:52 -04:00
Landon Manning
e9b00c2b71 Reduced garbage 2015-12-28 12:15:19 -04:00
Matthew Blanchard
f4163b9893 Pruned mat4. Added quat.mul_vec3. 2015-12-28 11:11:45 -05:00
Landon Manning
55685bedcc Added second ray_triangle function for performance testing
We should exercise both to see which performs better.
2015-12-28 12:02:22 -04: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
Davis Claiborne
acd5c108db Updated init.lua 2015-12-27 20:46:51 -05:00
Davis Claiborne
993ac08918 Removed module point 2015-12-27 20:45:25 -05:00
Matthew Blanchard
8c9214764e Fixed a small bug in vec2. 2015-12-25 22:19:53 -05: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
Matthew Blanchard
c60a324010 Fixed some small holdovers from vec3 remaining in vec2. 2015-12-25 18:44:03 -05:00
Matthew Blanchard
c5d02e0683 Updated vec3 doc comments. Brought vec2 in line with vec3. Doc commented vec2. 2015-12-25 18:35:03 -05:00
Matthew Blanchard
4302b2b5dc Added unit vectors. 2015-12-24 16:49:21 -05:00
Matthew Blanchard
2b35d4ae57 Removed defaults. Added trim. Reworked __call so it works correctly. Made all functions return out. 2015-12-24 16:46:58 -05:00
Matthew Blanchard
6116576ad0 Fixed a small typo in vec3 2015-12-23 04:50:53 -05:00
Matthew Blanchard
94ef22b643 Fixed issues with ffi and cloning.
Fixed the ffi check to now work correctly and moved the ffi local up a
scope so that it could be used later in the file. Made clone simply call
new().
2015-12-23 03:19:09 -05:00
Matthew Blanchard
bb78a486b0 Fixed merge conflicts. Refactored reflect and refract. 2015-12-22 18:05:39 -05:00
Matthew Blanchard
57704e9dba Added standard Lua fallback and documentation. 2015-12-22 17:55:59 -05:00
Landon Manning
71af8f5498 Rewrote quaternion module
Untested, but I hope it works!
2015-12-22 05:27:22 -04:00
Colby Klein
b9e004dc1a Add vec3.reflect and vec3.refract 2015-12-20 22:55:38 -08:00
Colby Klein
82f336a7f4 Fix broken vec2/vec3 clone. 2015-12-20 22:38:36 -08:00
Matthew Blanchard
5a9aabadb5 Revert "Added simple object and shape constructors"
This reverts commit 10f472771b00b79a479ab54c879f10d234197166.
2015-12-20 22:40:33 -05:00
Landon Manning
10f472771b Added simple object and shape constructors
ray, aabb, obb, plane, sphere, line, triangle
2015-12-20 22:35:06 -04:00
Landon Manning
7143dcadae Wrote cpml instead of vec3 in some places 2015-12-20 20:54:57 -04:00
Landon Manning
870a3c5129 Updated vec2 to match new vec3
Fixed code consistency in vec3 as well.
2015-12-20 06:09:09 -04:00
Landon Manning
8b136798d2 Updated intersect to use new vec3
Improved code consistency as well.
2015-12-20 05:24:28 -04:00
Matthew Blanchard
a4688f10e1 Removed point from init.lua 2015-12-20 00:21:53 -05:00