Commit graph

22 commits

Author SHA1 Message Date
treeform 3cda6de7b8 Update readme. 2021-09-30 17:29:54 -07:00
flywind 8817578a2d
fix links
Before it is `https://github.com/treeform/vmath/blob/master/tests%5Cbench_raytracer.nim`
2021-07-20 12:16:00 +08:00
treeform 0f9d7e0768 Fix readme. 2021-06-02 08:16:50 -07:00
treeform 8ad38bafb0 Add more tests and fix JS mode. 2021-06-02 08:13:39 -07:00
Ryan Oldenburg 2a35ab402c updated github actions 2021-05-31 15:46:16 -05:00
Ryan Oldenburg 49ae58523c readme suggestions 2021-05-31 15:46:15 -05:00
treeform b711575b68 Update readme. 2021-05-29 16:33:03 -07:00
treeform 6e7ab443af Add svg benchmark to readme. 2021-05-29 11:46:49 -07:00
treeform 7916ec12c7 Add ray trace benchmark. 2021-05-29 11:42:46 -07:00
treeform 43f9875df8 Change readme. Allow toRad/deg take integers. 2021-05-29 11:24:48 -07:00
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 6fa95402da Update API doc. 2021-02-27 21:50:55 -08:00
Ryan Oldenburg 68d2c6a585 fix 2020-11-30 12:28:25 -06:00
Ryan Oldenburg 75dd88deb3 update readme 2020-11-30 01:35:46 -06:00
Ryan Oldenburg 8cb1486367 func->proc 2020-11-29 16:55:52 -06:00
treeform 6890c72cfc Update docs. 2020-11-21 20:18:50 -08:00
Ryan Oldenburg b6e6e452e4 updated readme 2020-03-17 19:38:39 -05:00
Ryan Oldenburg a394c4170c Ran mddoc, new procs 2020-03-08 22:13:25 -05: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 965e2b06cc update structure 2018-08-12 14:25:42 -07:00
treeform 39999fd006 Added readme 2018-08-10 08:08:56 -07:00