24 Commits

Author SHA1 Message Date
David Briscoe
29954aa60e vec: Add nan checking functions
Add:
* vec2.has_nan + test
* vec3.has_nan + test
* quat.has_nan
* mat4.has_nan
* utils.is_nan + test
2022-03-26 23:33:13 -07:00
mcc
f7497b9bf7 Manual merge PR#52 2020-05-03 12:50:42 -04:00
mcc
7452cc0c6c Simple methods for flipping a vector on exactly 1 axis 2019-11-30 11:25:00 -05:00
mcc
8e65db07ce :round(precision) methods for vec2, vec3, bound2, bound3
Uses utils.lua, which requires moving utils.round to a new _private_utils.lua
2019-11-30 00:03:55 -05:00
mcc
b80543c242 Make vec2(vec2(1,2)) and vec3(vec3(1,2,3)) consistent between lua and luajit 2019-11-29 14:44:34 -05:00
karai17
08b23e394b Updated tests, fixed couple bugs 2016-12-15 19:57:31 -04:00
Colby Klein
d19a5addcb Fix failing tests caused by mul->scale 2016-08-21 20:42:44 -07:00
karai17
f038ce2dc7 Increased test coverage of vec2, vec3, quat 2016-07-24 10:49:35 -03:00
karai17
c4fabe7f19 Made the tests less bad 2016-07-24 10:04:29 -03:00
karai17
78b34590c5 vec2 and vec3 100% test coverage 2016-07-21 13:52:35 -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
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
Matthew Blanchard
c5d02e0683 Updated vec3 doc comments. Brought vec2 in line with vec3. Doc commented vec2. 2015-12-25 18:35:03 -05:00
Landon Manning
7b00a41588 fixed a typo 2015-12-13 06:44:39 -04:00
Landon Manning
b2367b6382 *actually* fix tests 2015-12-13 06:36:37 -04:00
Landon Manning
bce2621f2d Fixed tests 2015-12-13 06:33:20 -04:00
Colby Klein
6a5771348c Minor doc/test updates for vec3 2015-09-13 05:51:13 -07:00
Colby Klein
edbf08005d Update vec3 division tests 2015-09-10 20:32:32 -07:00
Colby Klein
d198d7f97f Backout some FFI code - didn't work. 2015-08-25 11:10:18 -07:00
Colby Klein
54daab8ce2 Fix vec3 test failures, add unit vectors. 2015-08-15 01:06:32 -07:00
Colby Klein
d004860628 Add more vec3 tests. 2015-04-25 16:19:03 -07:00
Colby Klein
b6c8164935 Add precision argument to utils.round 2015-04-25 06:29:20 -07:00
Colby Klein
4cecab73c2 Add initial vec3 and utils specs 2015-04-25 05:49:36 -07:00