Max Cahill
0a02d7a2da
Merge feature/tablex.rotate
...
refactored to use loops instead of recursion for simplicity
2021-10-08 10:17:34 +11:00
flamendless
8a069c38d4
[tablex] Add rotate
2021-10-03 17:31:55 +08: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
c70b463af1
Merge pull request #31 from chrsm/chrsm/fix-generate_2d
...
functional: fix generate_2d return value
2021-08-15 17:01:36 +10:00
chrsm
c740614cb9
functional: fix generate_2d return value
2021-08-14 20:51:45 -07:00
Max Cahill
36e3261534
Merge remote-tracking branch 'origin/master'
2021-08-14 19:10:20 +10:00
Max Cahill
2b6a6d8f53
pretty format: circular reference ids only apply in their own reference tree
...
so, repeated but not circular data is repeatedly output
helpful for serialisation-like uses and more clear because the id was not printed on the actual data structure in this case
2021-08-14 19:10:12 +10:00
Max Cahill
0dfb74317f
fix another typo in make_pooled
2021-08-13 10:56:53 +10:00
Max Cahill
7fe9234708
Merge pull request #30 from FlamingArr/master
...
A minor typo-fix
2021-08-12 15:43:42 +10:00
FlamingArr
92406fa983
Fix a typo in make_pooled
2021-08-12 00:53:03 +05:30
Max Cahill
ad8012c89b
added normalize alias for americans to vec2
2021-08-09 19:27:29 +10:00
Max Cahill
918c9438cd
Merge branch 'feature/vec2-friendly-api'
2021-08-09 19:07:28 +10:00
Max Cahill
fa742beb50
reorganised some of vec2, added some missing copying methods
2021-08-09 19:07:03 +10:00
Max Cahill
4bb3da7603
slightly tweaked vec2 new
2021-07-23 14:38:14 +10:00
Max Cahill
a61a8a8618
added reversed-order methods for intersect (some missing)
2021-07-23 14:34:47 +10:00
Max Cahill
1a40c1ef27
added aabb as an acronym for camelCase
2021-07-23 14:26:26 +10:00
Max Cahill
f835dd6e66
vec2 api finalisation and testing, updating intersect to new api
2021-07-23 14:15:30 +10:00
Max Cahill
635bf506dc
Merge remote-tracking branch 'origin/master' into feature/vec2-friendly-api
2021-07-23 11:04:23 +10:00
Max Cahill
cb35811b8c
start of vec2 friendly api - will settle on something here before touching vec3
2021-07-23 10:58:21 +10:00
Max Cahill
3b739380e4
manual_gc cleanup/clarification and default arguments
2021-07-23 10:53:29 +10:00
Max Cahill
6d0f21a7c0
readme cleanup
2021-07-23 10:53:16 +10:00
Max Cahill
1a8769fc22
removed debug print from :camelCase()
2021-07-22 09:06:12 +10:00
Max Cahill
9f65e1150b
modified :camelCase to capitalise class names and fully capitalise known acronyms. __name changed to __type, used for :type() calls
...
fixes #29
2021-07-21 19:50:12 +10:00
Max Cahill
444df42569
added :camelCase() and a note about it being experimental
2021-07-20 17:11:01 +10:00
Max Cahill
8bbe71e406
Merge remote-tracking branch 'origin/master'
2021-07-20 16:20:28 +10:00
Max Cahill
4cea23e2e8
reworked intersect.lua - accepting that continuous collision is out of scope, reworking docs
2021-07-20 16:20:15 +10:00
Max Cahill
26c5920efe
Merge pull request #28 from flamendless/master
...
Fixed typos
2021-07-19 20:34:42 +10:00
flamendless
1d59b3623e
Fixed typos
2021-07-18 09:30:22 +08:00
Max Cahill
453f00d82f
updated class docs about super construction
2021-07-16 19:39:24 +10:00
Max Cahill
7813bf35a1
fixed stack overflow for 3-or-deeper hierarchies on super construction
2021-07-16 19:33:47 +10:00
Max Cahill
a339854651
fixed vec2/vec3 crashing on attempted copy construction from something that had a type field which wasn't a callable type() method (eg objects from tiled)
2021-07-16 19:23:59 +10:00
Max Cahill
6ef19cfde0
added make_pooled, refactor pooling out of vector classes for easy reuse
2021-07-15 16:15:58 +10:00
Max Cahill
3cc177a0c0
BREAKING class interface refactor - all classes will need a minor update, see class.lua
...
tl;dr is that new no longer needs to call init, calling :new() directly in user code is not allowed, properties are copied, metamethods work, and a config table is needed rather than a class to extend from, so use {extends = superclass} if you want a minimal fix
2021-07-15 16:15:27 +10:00
Max Cahill
e1bb76d419
Note about camelCase
2021-07-13 16:55:32 +10:00
Max Cahill
67264fe7a7
extensive readme work
2021-07-13 16:52:32 +10:00
Max Cahill
b570583e53
move to zlib license
2021-07-13 16:52:26 +10:00
Max Cahill
76ed4b1a02
stringx.apply_template works with $snake_case_symbols
2021-07-13 16:47:19 +10:00
Max Cahill
292345b953
fixed bug in filter_inplace for single element collections
2021-07-06 14:33:41 +10:00
Max Cahill
0691f2bd36
added tablex.random_index
2021-07-06 08:29:45 +10:00
Max Cahill
20aa83f79e
added stringx.contains
2021-07-06 08:29:30 +10:00
Max Cahill
77d954e58a
stringx.split delimiter optional
2021-07-06 08:29:13 +10:00
Max Cahill
65d06d01f6
fixed pretty default config getting modified by parameters
2021-07-05 16:20:03 +10:00
Max Cahill
67019de5b5
made pretty module default config and doc comments consistent order
2021-07-05 16:18:03 +10:00
Max Cahill
3c5455d616
added pretty
module to readme
2021-07-05 16:13:45 +10:00
Max Cahill
e726f19a5e
added pretty module with pretty.print and pretty.string
...
breaking: string.pretty still exists but takes new config argument
2021-07-05 16:12:16 +10:00
Max Cahill
b44b92a32d
refactored state machine to be clear about which variables and parameters are state tables, and which are name strings
...
breaking - changed some property and function names
fixes #16
2021-07-05 14:53:55 +10:00
Max Cahill
1de942daa8
Use luajit table.clear properly
...
Fixes #25
2021-06-29 14:46:40 +10:00
Max Cahill
a2c7800290
Note about branchless or abs-based mathx.sign
2021-06-29 14:44:09 +10:00
Max Cahill
fe135c533b
More pooled storage for intersect.lua
2021-06-29 14:43:55 +10:00