Commit graph

98 commits

Author SHA1 Message Date
Ryan Oldenburg 159c17bf7d remove math. 2020-11-29 17:01:48 -06:00
Ryan Oldenburg 8cb1486367 func->proc 2020-11-29 16:55:52 -06:00
treeform b51a891ab0 Inline vec2 operations. 2020-11-28 22:15:52 -08:00
treeform ac1982820c Fix rotationMat3. 2020-11-23 17:13:01 -08:00
treeform 09fac31169 Add translate, scale and fix inverse of mat3 used for 2d graphics. 2020-11-21 20:09:40 -08:00
treeform 79cc774bcc Add and and or for rects. 2020-11-14 18:16:28 -08:00
treeform 7991cea91e Add [] to matrixes. Fix 3x3 matrix to match same order as 4x4 matrix. 2020-11-12 10:00:35 -08:00
treeform 47a9acad51 add quat(hpr) method 2020-08-03 10:04:29 -07:00
Ryan Oldenburg 22364a1c9b shorthands like glsl 2020-05-17 23:41:33 -05:00
guzba 92728c3771
Updated github action, tests work via print testing in a good way (#14)
* remove echo

* nimble build and nimble test working

* rename test output file

* just test

* rename

* compare to valid to ensure tests pass

* improved msg

* fix action

* test

* use git diff instead of masters
2020-05-06 16:58:21 -07:00
treeform 88d15a86a9 Add [] and lerp vec4 functions. 2020-05-01 21:05:23 -07:00
Ryan Oldenburg 14be0bf524 add Mat4 * Vec4, nicer hashing 2020-04-27 18:28:17 -05:00
treeform 7e28503e3c Add floor, round and ceil to vecs. 2020-04-10 21:02:39 -07:00
Ryan Oldenburg 5dbd41b638 rename fov to forward 2020-04-05 22:41:17 -05:00
Ryan Oldenburg 58205cdba9 safe to remove? i dont seem to need it since its just an alias 2020-03-27 10:48:20 -05:00
Ryan Oldenburg 5d40f60830 remove result= when possible 2020-03-19 00:44:28 -05:00
Ryan Oldenburg 88bc5042e8 hash 2020-03-19 00:42:03 -05:00
Ryan Oldenburg 0ce3ff8762 no return to be consistent with rest of code in vmath 2020-03-19 00:42:03 -05:00
treeform 1328014e5f Merge branch 'master' of github.com:treeform/vmath 2020-03-18 19:23:16 -07:00
treeform 1857862896 Fix a bug with randVec3. 2020-03-18 19:23:01 -07:00
Ryan Oldenburg 8873f44b04 fix extra comma 2020-03-17 21:10:52 -05:00
Ryan Oldenburg 52f568c162 use strformat for $ 2020-03-17 18:35:41 -05:00
Ryan Oldenburg fd11bced38 func 2020-03-17 18:15:38 -05:00
Ryan Oldenburg a81545eb97 add indexed setter for quat 2020-03-17 16:20:33 -05:00
Ryan Oldenburg 79311e786e removable? https://nim-lang.org/docs/system.html#clamp%2CT%2CT%2CT 2020-03-17 13:18:41 -05:00
Ryan Oldenburg 53c396c709 add normalized linear interpolation for quats 2020-03-17 01:52:57 -05:00
Ryan Oldenburg 6f7ffdfd60 bugfix 2020-03-13 21:33:45 -05:00
Ryan Oldenburg b2350fe404 cap like other things seem to 2020-03-13 00:09:21 -05:00
treeform cfd1d2442d Merge branch 'master' of github.com:treeform/vmath 2020-03-10 21:36:46 -07:00
treeform 1ca42be449 Add new quantize method for vec3. 2020-03-10 21:36:43 -07:00
Ryan Oldenburg d5f452174b morepretty 2020-03-10 14:55:06 -05:00
treeform 9602785efe Nimpretty. 2020-03-07 20:56:54 -08:00
Ryan Oldenburg 5bd74ecbf5 add a couple more procs, mostly for rect 2020-03-07 20:44:39 -06:00
Ryan Oldenburg 56a0e6ea2d single empty line 2020-03-07 20:33:08 -06:00
guzba c212d3d95b
Improve docs and use unix line endings (#2)
* use unix line endings
* improving some docs
* add mddoc dep
2020-03-05 17:44:26 -08:00
treeform c66c1ee9b3 Update docs. 2019-10-17 07:42:23 -07:00
treeform 5d9d3880e3 Added lenSq, distSq, randVec, and .xy/.wh to Rects 2019-06-01 10:32:02 -07:00
treeform 960564856a Stupid quats again! 2019-02-06 08:24:43 -08:00
treeform 748b3a1184 fix small bug in matrix scale 2019-01-21 21:38:41 -08:00
treeform d494ab1518 fix sin/cos issue. 2019-01-07 08:59:11 -08:00
treeform c515641f68 add angleBetween tow angels function 2018-10-14 10:04:28 -07:00
treeform 359f7726eb move fn 2018-10-13 08:34:57 -07:00
treeform 04e27d4122 Changed to use float32 instead of float. 2018-09-02 08:59:23 -07:00
treeform 1bcd8194c1 Remove xmath, remove print dependency 2018-08-19 10:49:49 -07:00
treeform 2f21a19443 Change to use float rect 2018-08-18 08:56:42 -07:00
treeform 965e2b06cc update structure 2018-08-12 14:25:42 -07:00
treeform 83c55e5801 Add x-math 2018-08-10 08:57:37 -07:00
treeform 6eabdc708c first commit 2018-08-10 08:05:43 -07:00