Commit graph

176 commits

Author SHA1 Message Date
treeform c15614ec2c Add tempalte based swizzle to work around https://github.com/nim-lang/Nim/issues/13063 2021-11-20 09:55:10 -08:00
treeform 7082ed6452
Merge pull request #43 from guzba/master
1.1.0 added some vector conversions
2021-10-11 22:56:09 -07:00
Ryan Oldenburg 1bf21392b9 fix 2021-10-11 21:04:18 -05:00
Ryan Oldenburg 3eaf06d6e3 1.1.0 2021-10-11 20:45:24 -05:00
Ryan Oldenburg 81041ac712 add some vector conversions 2021-10-11 20:45:10 -05:00
treeform 47891e35d2 Add mat3.determinant and use it in inverse(). 2021-10-04 12:44:27 -07:00
treeform ec9940810d Merge branch 'master' of github.com:treeform/vmath 2021-10-04 12:41:02 -07:00
treeform 5f8e087818 Add GLM benchmark. 2021-10-04 12:40:39 -07:00
treeform 3cda6de7b8 Update readme. 2021-09-30 17:29:54 -07:00
Andre von Houck fa66fc6538 Small change. 2021-09-26 21:46:49 -07:00
treeform 0910ea5c0a
Merge pull request #41 from guzba/master
1.0.11 Mats bycopy
2021-09-05 10:24:33 -07:00
Ryan Oldenburg 7b55ea0b12 1.0.11 Mat3 bycopy 2021-09-05 12:23:07 -05:00
treeform a8a6f69ec4
Merge pull request #40 from xflywind/patch-1
fix links
2021-07-22 22:09:12 -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 522bbf3bc0 Depricate lerp use mix, add mod and zmod. 2021-07-15 22:28:16 -07:00
treeform 1448f8860a 1.0.10 2021-07-12 20:08:57 -07:00
treeform f711a5ff6d
Add Swizzle to all Vecs. (#39)
* Add swizzle based on macro.
* More constructors.
* Make it work with shady.
* Morepretty.
* Add ray tracer output.
* Better typePrefix that works with all vector layouts.
2021-07-12 20:07:40 -07:00
treeform 9196bbfe81 Fix minor issues with Apple M1. 2021-07-11 06:25:13 -07:00
treeform 0a29d51639 Add mat3 * vec3. 2021-07-06 08:50:39 -07:00
treeform 9b9f8f525e Add some more matrix * vector operatoins. 2021-07-05 09:54:23 -07:00
treeform b2877a9cde 1.0.9 2021-06-18 18:35:01 -07:00
treeform d0aace4c93 Add min/max functions for vectors. 2021-06-11 08:02:30 -07:00
treeform 698d47ddff
Merge pull request #38 from guzba/master
faster == and !=
2021-06-05 23:34:51 -07:00
Ryan Oldenburg 6fcea77557 test 2021-06-06 01:01:47 -05:00
Ryan Oldenburg 7f4545b241 faster == and != 2021-06-05 00:31:19 -05:00
treeform 0f9d7e0768 Fix readme. 2021-06-02 08:16:50 -07:00
treeform cdc47d4d75
Merge pull request #37 from treeform/tests
Add more tests and fix JS mode.
2021-06-02 08:15:48 -07:00
treeform 8ad38bafb0 Add more tests and fix JS mode. 2021-06-02 08:13:39 -07:00
treeform 4441978b31
Merge pull request #36 from guzba/master
readme and github actions suggestions
2021-06-01 08:00:26 -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 15c2e7b687 Add 3d tray trace benchmark. 2021-05-29 11:48:14 -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 693002bacd 1.0.8: Fix and bench isNan. 2021-05-29 10:55:46 -07:00
treeform b355ff2a28 Merge branch 'master' of github.com:treeform/vmath 2021-05-29 09:29:39 -07:00
treeform a2c0da6255 1.0.7 - Add $ to everything, add isNaN. 2021-05-29 09:29:36 -07:00
Elliot Waite 31d1e05d98
Fix error message (#35) 2021-05-28 23:08:39 -07:00
treeform 8debf1f6a1 1.0.6 2021-05-08 11:10:15 -07:00
treeform feca07ded9 Fix #34: ortho(), add tests. 2021-05-08 11:09:22 -07:00
treeform 8619b9aea4 1.0.5 2021-05-08 11:02:12 -07:00
treeform 2acbf2a3c3 Fix issue with rotate matrixes. 2021-05-08 11:01:17 -07:00
treeform 6db149a2be
Add 3 different vector/matrix representations. (#32)
* Add -d:vmathArrayBased to go to array vectors (slow).
* Add -d:vmathObjBased to go to object vectors (faster).
* Add default or just add -d:vmathObjArrayBased to go to object-array vectors (fastest).

Current speed test (using pixie, your results may vary):
```
nim c -r -d:release -d:vmathArrayBased .\tests\benchmark_svg.nim
svg decode ........................ 31.543 ms     38.110 ms    ±5.531  x1000

nim c -r -d:release -d:vmathObjBased .\tests\benchmark_svg.nim
svg decode ........................ 25.620 ms     33.569 ms    ±6.328  x1000

nim c -r -d:release .\tests\benchmark_svg.nim
svg decode ........................ 25.746 ms     33.059 ms    ±5.666  x1000
```
2021-05-08 11:00:29 -07:00
treeform b1722b9fa4
Merge pull request #31 from guzba/master
1.0.4 mat3.pos=
2021-04-27 21:15:33 -07:00
Ryan Oldenburg 322c4f6a98 1.0.4 mat3.pos= 2021-04-27 20:26:39 -05:00
treeform 19eb9dd330 1.0.3: Add fractional, speed up lerp. 2021-04-18 16:50:48 -07:00
treeform 9cdf152ec7 1.0.2: Fix default generic params. 2021-03-26 15:33:36 -07:00
treeform a4662ebf0a Fix bug with perspective and add back nlerp. 2021-03-26 15:16:36 -07:00