Commit Graph

17 Commits

Author SHA1 Message Date
Max Cahill
6e65f82474 clarified rng variable name, but also removed warning for _ prefixed variables as they are used to signal internal/private variables rather than unused variables. 2022-04-22 10:05:44 +10:00
Max Cahill
658c8e7117 fixed mathx.ease_inout 2022-01-18 13:15:54 +11:00
Max Cahill
7767802433 chased down more math vs mathx usage (and actually fixed the random_lerp usage) 2021-11-19 15:35:52 +11:00
Max Cahill
4460a94933 mathx.random_lerp calls mathx.lerp instead of math.lerp so it works without exported globals
fixes #41
2021-11-19 15:28:54 +11:00
Max Cahill
754faecd02 fixed pingpong backwards 2021-09-24 11:48:25 +10:00
Max Cahill
107cad43e5 added some more easing curves to mathx 2021-09-24 11:44:53 +10:00
Max Cahill
a2c7800290 Note about branchless or abs-based mathx.sign 2021-06-29 14:44:09 +10:00
Max Cahill
d9da4749e2 [added] some randomness helper functions to mathx 2021-05-04 11:41:22 +10:00
Max Cahill
7c975e8c4a [removed] prime stuff from mathx; hard to justify the filesize 2021-05-04 11:40:20 +10:00
Max Cahill
cd1f9f097a [added] mathx.length, mathx.distance for "inline" geometry stuff 2020-09-02 13:34:10 +10:00
Max Cahill
b4e2cff498 [added] mathx.bilerp which does a bilinear interpolation from 4 samples 2020-07-27 21:47:06 +10:00
Max Cahill
5230e8f9d6 [fixed] mathx.wrap over-complicated impl, mathx.round (thanks @MikuAuahDark/@sharpobject) 2020-07-09 15:32:42 +10:00
Max Cahill
9d0a7d6e86 [added] mathx.isnan, does what it says on the tin 2020-05-20 21:02:51 +10:00
Max Cahill
4a2505a04d [added] mathx.relative_angle replaced with mathx.angle_difference and direction "fixed"
Fixes issue #6 after discussion was in favour of change.
2020-05-01 12:59:58 +10:00
Max Cahill
7deef92639 [added] mathx.lerp_angle and notes about possible changes to mathx.relative_angle 2020-04-30 16:38:59 +10:00
Max Cahill
54b21ce159 [added] mathx.wrap_index 2020-04-09 17:39:46 +10:00
Max Cahill
6386aaf298 [modified] big refactor to localised modules and require("batteries"):export() for global usage; renamed files table to tablex and math to mathx to allow using the library in your module root if you really want to. 2020-04-07 13:49:10 +10:00