Commit graph

176 commits

Author SHA1 Message Date
treeform 0f80873e58
vmath 1.0.0 - Breaking Changes. (#29)
# Added a bunch of new types:

Type  | Constructor | Description
------|-------------| ---------------------------------------------------
BVec# | bvec#       | a vector of booleans
IVec# | ivec#       | a vector of signed integers
UVec# | uvec#       | a vector of unsigned integers
Vec#  | vec#        | a vector of single-precision floating-point numbers
DVec# | dvec#       | a vector of double-precision floating-point numbers

## And these types:

NIM     | GLSL   | 2     | 3     | 4     | 9     | 16    | 4     |
--------|--------|-------|-------|-------|-------|-------|-------|
bool    | bool   | BVec2 | BVec3 | BVec4 |       |       |       |
int32   | int    | IVec2 | IVec3 | IVec4 |       |       |       |
uint32  | uint   | UVec2 | UVec3 | UVec4 |       |       |       |
float32 | float  | Vec2  | Vec3  | Vec4  | Mat3  | Mat4  | Quat  |
float64 | double | DVec2 | DVec3 | DVec4 | DMat3 | DMat4 | DQuat |

# 0.x.x to 1.0.0 vmath breaking changes:

* `vec3(v)` no longer works please use `vec3(v.x, v.y, 0)` instead.
* `vec3(v, 0)` no longer works please use `vec3(v.x, v.y, 0)` instead.
* `2 * v` no longer works due to more vec types please use `v * 2` instead.
* `m[15]` no longer works because matrices are now m[x, y].
* Concept of 3x3 rotation 3d matrix was removed.
* `angleBetween` got renamed to `angle(a, b)`
* `scaleMat` got renamed to `scale(v)`
* `rotationMat3` got renamed to `rotate(x)`
2021-03-26 13:58:21 -07:00
treeform d0525d9576
Merge pull request #28 from guzba/master
add license
2021-03-02 11:04:39 -08:00
Ryan Oldenburg 5b43e06ed5 add license 2021-03-02 13:03:43 -06:00
treeform 4cb11b87b0 Make sure every type has a hash. 2021-02-28 11:02:59 -08:00
treeform 6160e80b31 Delete old test data. 2021-02-27 21:52:00 -08:00
treeform 6fa95402da Update API doc. 2021-02-27 21:50:55 -08:00
treeform 437f3cc604 0.5.0 - remove inRect, add ~=, change tests. 2021-02-27 21:49:31 -08:00
treeform 807c802e97 fix quat test try 3 2021-02-27 11:28:23 -08:00
treeform 1a90fe6043 fix quat test try2 2021-02-27 11:26:38 -08:00
treeform 392b566351 fix quat test 2021-02-27 11:24:04 -08:00
treeform f01e2bfb54 Add mat3.pos. 2021-02-25 16:43:00 -08:00
treeform 23e88bb951
Merge pull request #26 from elliotwaite/patch-1
Fix zx proc
2021-01-06 19:09:22 -08:00
treeform 962e776948
Merge pull request #27 from guzba/master
0.4.1 add missing floor, ceil, round
2021-01-06 19:08:31 -08:00
Ryan Oldenburg e8b53ab066 0.4.1 add missing floor, ceil, round 2021-01-06 19:55:45 -06:00
treeform 747262f4e3 Change from template to proc. 2021-01-01 20:14:29 -08:00
Elliot Waite 4a07ed16f3
Fix zx proc 2020-12-17 14:42:35 -08:00
treeform 21dbb2b908 Convert [] from template to inline. 2020-12-15 00:07:36 -08:00
treeform a143105720 0.4.0 2020-12-10 17:45:11 -08:00
treeform 7daddded1d
Merge pull request #25 from guzba/master
remove rect
2020-12-10 17:44:45 -08:00
Ryan Oldenburg 0cc7672076 remove rect 2020-12-10 17:14:35 -06:00
treeform 404cace019
Merge pull request #24 from guzba/master
fix
2020-11-30 11:25:19 -08:00
Ryan Oldenburg 1254cefe34 let 2020-11-30 12:29:53 -06:00
Ryan Oldenburg 68d2c6a585 fix 2020-11-30 12:28:25 -06:00
treeform 61f68ea61f
Merge pull request #23 from guzba/master
readme, formatting
2020-11-29 23:48:11 -08:00
Ryan Oldenburg 75dd88deb3 update readme 2020-11-30 01:35:46 -06:00
Ryan Oldenburg b50b570447 shorter 2020-11-30 01:35:10 -06:00
Ryan Oldenburg 3c02a64729 formatting 2020-11-30 01:30:17 -06:00
treeform 62a8b39bb1
Merge pull request #22 from guzba/master
mat3, mat4 stuff
2020-11-29 23:15:57 -08:00
Ryan Oldenburg f83eb0b7b2 more clear 2020-11-30 01:07:08 -06:00
Ryan Oldenburg 19c9ef1b0b add missing 2020-11-30 00:50:07 -06:00
Ryan Oldenburg a307f89589 quat 2020-11-30 00:22:10 -06:00
Ryan Oldenburg 7a9bca4236 more 2020-11-29 23:52:10 -06:00
Ryan Oldenburg d8582e6bdd more mat3 2020-11-29 23:45:57 -06:00
Ryan Oldenburg 1fe7cc09de some mat4 2020-11-29 23:37:25 -06:00
Ryan Oldenburg 39e6fce823 mat3 stuff 2020-11-29 23:26:43 -06:00
treeform fba9ed7699
Merge pull request #21 from guzba/master
inlines, etc
2020-11-29 20:30:43 -08:00
Ryan Oldenburg 21a4ac8ebf inline more 2020-11-29 22:29:21 -06:00
Ryan Oldenburg 2ddcdc4dc6 better 2020-11-29 22:23:00 -06:00
Ryan Oldenburg 35c99e641f fix 2020-11-29 22:10:43 -06:00
Ryan Oldenburg 1a5fbe202a mostly inlines + rand 2020-11-29 19:21:58 -06:00
Ryan Oldenburg 80a2b4dade rand param 2020-11-29 18:58:47 -06:00
Ryan Oldenburg dfa3e2199f vec2 2020-11-29 18:55:54 -06:00
treeform e6fd6e05ae
Merge pull request #20 from guzba/master
some small stuff
2020-11-29 15:30:31 -08:00
Ryan Oldenburg 9951eb0d0a formatting 2020-11-29 17:05:37 -06:00
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 6890c72cfc Update docs. 2020-11-21 20:18:50 -08:00
treeform a3d73662bc 0.3.3 2020-11-21 20:09:54 -08:00