Commit Graph

39 Commits

Author SHA1 Message Date
Lorenzo Cogotti 5c76bdeed8 [timer] Minor style fix 2024-01-26 16:24:30 +01:00
Lorenzo Cogotti 41954aff63 [color] Add helper functions for HSV and HSL color conversion 2024-01-26 16:23:55 +01:00
Lorenzo Cogotti 2b7c1dd829 [.luarc] Add lua-language-server config file. 2023-11-21 12:08:10 +01:00
Lorenzo Cogotti 940846e420 [vec] Add 2D cross product
Add 2D cross product (returns a scalar value).

For consistency with the rest of the API, the 3D cross product has been renamed
to cross3().
2023-11-21 11:26:52 +01:00
Lorenzo Cogotti 34221bf850 [algo] Add sign() function 2023-11-01 11:21:02 +01:00
Lorenzo Cogotti 08ac115ea2 [algo] Fix typo 2023-11-01 11:19:13 +01:00
Lorenzo Cogotti 9fa38d17a2 [strings] Add utility to test whether a path is absolute 2023-09-23 16:03:12 +02:00
Lorenzo Cogotti 12a12197df [strings] Add optimized utilities to deal with path extensions 2023-09-23 15:50:52 +02:00
Lorenzo Cogotti f6e031a98a [timer] Handle cancel(nil) as NOP. 2023-09-19 18:11:17 +02:00
Lorenzo Cogotti 2abcf253ca [color] Add color operations and utilities. 2023-06-01 23:12:43 +02:00
Lorenzo Cogotti 4ad64d0343 [README,camera] Add camera management module. 2023-06-01 23:12:20 +02:00
Lorenzo Cogotti 00d41367d6 [vec] Add functions to compute angles, minor style fixes. 2023-06-01 22:47:35 +02:00
Lorenzo Cogotti 2959abc4f6 [timer] Rework new() consistently with other classes. 2023-06-01 22:46:39 +02:00
Lorenzo Cogotti d3129070d9 [algo] Add stable sort algorithm, using merge sort. 2023-06-01 22:44:27 +02:00
Lorenzo Cogotti c58edfa486 [algo] Optimize insertion sort. 2023-06-01 22:43:25 +02:00
Lorenzo Cogotti dba877a190 [signal] Fix module name and summary. 2023-06-01 22:41:47 +02:00
Lorenzo Cogotti 9928899df1 [vec] Fix sqrdist* functions. 2023-03-04 08:32:16 +01:00
Lorenzo Cogotti 99fde174df [meta] Improve isinstance().
* Handle nil
* Use rawequal() instead of plain ==
2022-11-06 17:32:55 +01:00
Lorenzo Cogotti 62d22658b3 Merge branch 'master' of https://gitea.it/1414codeforge/gear 2022-11-06 17:26:50 +01:00
Lorenzo Cogotti 0408a4a31f [strings] Add path utility functions, improve documentation. 2022-10-02 14:40:30 +02:00
Lorenzo Cogotti c7849901cf [vec] Add cross product between vectors. 2022-09-15 09:18:25 +02:00
Lorenzo Cogotti 75d60b98f5 [meta] Use rawequal() to compare tables in isinstance().
Ensures no fancy metamethod is invoked during testing.
2022-09-10 09:43:46 +02:00
Lorenzo Cogotti ac68fce474 [README] Update ldoc usage. 2022-09-01 09:02:20 +02:00
Lorenzo Cogotti 32cecbef1c [rect] Make rotatesincos() require() path safer. 2022-09-01 08:57:35 +02:00
Lorenzo Cogotti 0ce17379a1 [algo] Improve documentation. 2022-09-01 08:52:02 +02:00
Lorenzo Cogotti 018fc77a13 [strings] Add file header. 2022-09-01 08:29:50 +02:00
Lorenzo Cogotti d49a9a1c21 [meta] Improve documentation. 2022-09-01 08:28:59 +02:00
Lorenzo Cogotti c6f486bf9f [config.ld] Add ldoc config.ld to project. 2022-09-01 08:27:57 +02:00
Lorenzo Cogotti a2180170ed [meta] Add table deep copy function. 2022-09-01 08:27:39 +02:00
Lorenzo Cogotti 96e03c54a5 [rect] Fix variables name. 2022-08-16 11:29:34 +02:00
Lorenzo Cogotti 5902182543 [init] Fix signal and timer entries, capitalize them since they are classes. 2022-08-16 11:19:39 +02:00
Lorenzo Cogotti 043989c0fd [signal,timer,init] Add customized versions of signal and timer from vrld/hump. 2022-08-16 10:38:33 +02:00
Lorenzo Cogotti de08ac3e66 [init] Fix missing comma. 2022-08-16 00:19:22 +02:00
Lorenzo Cogotti 18376860f3 [README] Update README. 2022-08-16 00:16:17 +02:00
Lorenzo Cogotti 9a1b9fedcd [shadowtext] Add text with drop shadow utilities. 2022-08-16 00:15:50 +02:00
Lorenzo Cogotti 619d31bf2f [spec/utils_spec.lua] Remove obsolete test. 2022-08-16 00:10:44 +02:00
Lorenzo Cogotti 0e2dd54011 [spec/*,*] Split library in submodules. 2022-08-16 00:10:09 +02:00
Lorenzo Cogotti e658ba45c7 [df-utils] Remove rockspec, unnecessary for LÖVE-specific library. 2022-08-16 00:05:59 +02:00
Lorenzo Cogotti 5c345d5e60 [*] Initial commit. 2022-08-12 17:27:11 +02:00