22ec1be9b3
File copyright header updates pt3.
2023-12-17 22:42:34 +01:00
e21a020b86
Add unsafe version from asin and acos.
2023-06-11 08:45:19 +02:00
lawnjelly
22d90711da
Make acos and asin safe
...
A common bug with using acos and asin is that input outside -1 to 1 range will result in Nan output. This can occur due to floating point error in the input.
The standard solution is to provide safe_acos function with clamped input. For Godot it may make more sense to make the standard functions safe.
2023-06-11 08:41:42 +02:00
25e57a4268
Added erf to Math.
2023-04-22 13:00:28 +02:00
e80dfcee2e
Added a Math singleton exposing math functions directly to scripts. The idea is to make the disrepancies between scripts and engine side code smaller.
2023-04-22 12:47:56 +02:00
4ab9936fc8
Added log10 to the Math class.
2023-04-22 11:00:24 +02:00
9118798036
Fix include.
2023-03-12 16:05:58 +01:00
Rémi Verschelde
f3e1aab267
Math: Prevent division by zero in posmod
...
Fixes #43932 .
Co-authored-by: David Hoppenbrouwers <david@salt-inc.org>
(cherry picked from commit f011d8ca9ca25232fb335eead1c8eeaf5c7f2c54)
2023-03-12 15:43:52 +01:00
6523457c0f
Backported the improvements to the Math class from Godot4.
2022-08-13 16:49:47 +02:00
Yuri Rubinsky
1a68039fcf
Fix wrapf
to correct wrap values with 0.1 stepping
...
(cherry picked from commit 09418afbc0b5a5642448786751b590352ee6cf97)
2022-07-29 09:08:06 +02:00
fa2ac74a7c
Added 2 helper methods to Math.
2022-07-02 21:55:46 +02:00
4d7df62b8e
Clang format all files.
2022-03-18 19:00:13 +01:00
7d8a93324e
Used the include guard script on core classes.
2022-03-17 21:58:11 +01:00
49f8e8c398
Added godot with all my currently used engine modules.
2022-03-15 13:29:32 +01:00