summaryrefslogtreecommitdiffstats
path: root/core/math/basis.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* CI: Update to clang-format 11 and apply ternary operator changesRémi Verschelde2021-01-121-2/+2
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Improve argument names for core typesAaron Franke2020-12-071-6/+6
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Remove redundant is_equal_approx_ratio methodAaron Franke2020-09-231-15/+6
| | | | is_equal_approx is able to handle values of any size, and is_equal_approx_ratio is no longer used in any exposed APIs, so we don't need is_equal_approx_ratio anymore. Also, add #ifdef MATH_CHECKS for a method that is only used when MATH_CHECKS is defined.
* Addition of SDFGI for open world global illuminationJuan Linietsky2020-06-261-1/+1
| | | | Move GI to a deferred pass
* - Added more euler rotation orders support.Andrea Catania2020-06-121-16/+198
| | | | | | | | - Fixed floating point issue on the old one. - Fixed the equation on the get_euler_yxz function. - Added unit tests. This work has been kindly sponsored by IMVU.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-11/+20
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-33/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* New lightmapperJuan Linietsky2020-05-101-0/+111
| | | | | | | -Added LocalVector (needed it) -Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too) -Fixes and changes all around the place -Added library for 128 bits fixed point (required for Delaunay3D)
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-1/+2
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Remove unnecessary check for zero determinant in Basis::orthonormalize().Marcel Admiraal2020-04-141-4/+0
|
* Modified rendering to use cluster instead of fowardJuan Linietsky2020-02-111-0/+12
|
* Add explanations for errors related to Vector/Quat normalizationHugo Locurcio2020-01-241-1/+1
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Removed unused variables, add some constants numbersRafał Mikrut2019-12-101-6/+6
|
* Make is_equal_approx separate for structuresAaron Franke2019-10-141-14/+7
| | | | This commit adds exposed behavior for C#
* Added some obvious errors explanationsqarmin2019-09-251-1/+1
|
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-171-4/+1
| | | | | | | | | Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
* Use reference to constant in functionsqarmin2019-07-101-1/+1
|
* Optimize Basis constructor for Axis AngleAaron Franke2019-05-171-11/+18
|
* Style: Apply new changes from clang-format 8.0Rémi Verschelde2019-04-091-2/+2
| | | | | | It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
* Some improvements to is_equal_approx, restored Quat operator.Juan Linietsky2019-04-011-6/+20
|
* Remove setting that caused is_inside_tree() errors on doppler tracking enabled.Juan Linietsky2019-02-261-8/+2
|
* Several fixes to make GLES2 on HTML5 work much better.Juan Linietsky2019-02-251-28/+46
| | | | Changed math class error reporting to be a bit less paranoid.
* [Core] Transform2D add set_scale and fix set_rotationAaron Franke2019-02-121-2/+2
| | | | Note: These are still not exposed to GDScript
* [Core] Rename Matrix3 file to BasisAaron Franke2019-02-091-0/+848
The code already referred to "Basis", it's just the file name that was different for some reason.