summaryrefslogtreecommitdiffstats
path: root/core/math
Commit message (Collapse)AuthorAgeFilesLines
* Fix stringification of ProjectionRémi Verschelde2024-11-251-8/+4
|
* Merge pull request #99545 from KoBeWi/Vector4.0Thaddeus Crews2024-11-251-1/+1
|\ | | | | | | Fix stringification of Vector4
| * Fix stringification of Vector4kobewi2024-11-221-1/+1
| |
* | Style: Add 19.1.0 LLVM options to `.clang-format`Thaddeus Crews2024-11-223-3/+0
|/
* Merge pull request #95303 from EIREXE/inverted_composerRémi Verschelde2024-11-201-91/+219
|\ | | | | | | Fix `Projection::invert` for orthographic projection
| * Fix Projection::invert on orthogonal projections and others.Álex Román2024-11-181-91/+219
| | | | | | | | | | | | Fixes #68878, specially when using orthographic projection. Also adds some tests.
* | Merge pull request #47502 from KoBeWi/add_0Thaddeus Crews2024-10-313-3/+3
|\ \ | | | | | | | | | Always add decimal when converting float to string
| * | Always add decimal when printing floatkobewi2024-10-233-3/+3
| | |
* | | [Core] Improve error messages with `vformat`A Thousand Ships2024-10-301-1/+1
| | |
* | | Merge pull request #97934 from adamscott/give-AThousandShips-a-breakThaddeus Crews2024-10-293-3/+3
|\ \ \ | | | | | | | | | | | | [Codestyle] Set clang-format `RemoveSemicolon` rule to `true`
| * | | Set clang-format `RemoveSemicolon` rule to `true`Adam Scott2024-10-253-3/+3
| |/ / | | | | | | | | | - Set clang-format `Standard` rule to `c++20`
* / / Expose `Geometry2D.bresenham_line()` methodDanil Alexeev2024-10-251-6/+6
|/ / | | | | | | Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* | Restore arc_tolerance value when using Clipper2's InflatePathsRicardo Buring2024-10-091-5/+7
| | | | | | | | This was missed when upgrading from Clipper to Clipper2.
* | Rename Vector4.components -> coordLukas Tenbrink2024-09-261-3/+3
| |
* | Merge pull request #97483 from akien-mga/clang-format-19.1.0Rémi Verschelde2024-09-261-1/+1
|\ \ | | | | | | | | | CI: Update `clang-format` pre-commit hook to 19.1.0
| * | CI: Update `clang-format` pre-commit hook to 19.1.0Rémi Verschelde2024-09-261-1/+1
| | |
* | | Merge pull request #96923 from Repiteo/style/warning-admonitionRémi Verschelde2024-09-261-5/+8
|\ \ \ | | | | | | | | | | | | Style: Add `WARNING:` as new comment admonition
| * | | Style: Add `WARNING:` as new comment admonitionThaddeus Crews2024-09-251-5/+8
| |/ /
* / / SCons: Add unobtrusive type hints in SCons filesThaddeus Crews2024-09-251-0/+1
|/ /
* | Fix C# operator *(Transform3D, AABB)kleonc2024-09-201-4/+4
| |
* | fix astar partial path destination can be solid/disabledallison2024-09-124-15/+15
| | | | | | | | | | | | | | | | * AStar2D, AStar3D and AStarGrid2D will now return a path when allow_partial_path is true even if the destination is a solid/disabled point. # Conflicts: # core/math/a_star_grid_2d.cpp # core/math/a_star_grid_2d.h
* | Merge pull request #93856 from timothyqiu/expression-periodRémi Verschelde2024-09-111-7/+3
|\ \ | | | | | | | | | Fix parsing of `4.` in Expression
| * | Fix parsing of `4.` in ExpressionHaoyu Qiu2024-07-021-7/+3
| | |
* | | Improve AStarGrid2D performance when jumping is enabledMartijn2024-09-052-77/+132
| | |
* | | Merge pull request #96328 from object71/fix-animation-snap-96159Rémi Verschelde2024-08-301-0/+3
|\ \ \ | | | | | | | | | | | | Add `modf` function and fix animation editor snap behavior
| * | | Add modf function and fix snap behaviorHristo Iliev2024-08-301-0/+3
| | | | | | | | | | | | | | | | Fixes #96159
* | | | Merge pull request #93893 from Togira123/fix-rand-weighted-return-valueRémi Verschelde2024-08-281-0/+5
|\ \ \ \ | | | | | | | | | | | | | | | Fix `rand_weighted` incorrectly returning -1
| * | | | Fix RandomPCG::rand_weighted incorrectly returning -1Togira2024-07-041-0/+5
| | |/ / | |/| |
* | | | Merge pull request #92123 from timothyqiu/estimate-endRémi Verschelde2024-08-284-21/+21
|\ \ \ \ | | | | | | | | | | | | | | | Change param name of AStar's `_estimate_cost` method
| * | | | Change param name of AStar's _estimate_cost methodHaoyu Qiu2024-05-194-21/+21
| | | | |
* | | | | Merge pull request #91868 from Chaosus/astargrid_get_point_positions_in_regionRémi Verschelde2024-08-282-0/+29
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | Add a method to retrieve all points within a region to `AStarGrid2D`
| * | | | Add a method to retrieve all points within a region to `AStarGrid2D`Yuri Rubinsky2024-05-122-0/+29
| |/ / /
* | | | Simplify and fix Rect2/AABB get_support functionAaron Franke2024-08-192-17/+22
| | | |
* | | | Merge pull request #95291 from BlueCube3310/hdr-optimizationsRémi Verschelde2024-08-161-27/+40
|\ \ \ \ | | | | | | | | | | | | | | | Optimize .hdr loading and RGB9E5 conversion
| * | | | Optimize .hdr loading and RGB9E5 conversionBlueCube33102024-08-091-27/+40
| | |_|/ | |/| |
* | | | Merge pull request #93149 from Malcolmnixon/smoothstep-degenerate-caseRémi Verschelde2024-08-161-2/+10
|\ \ \ \ | | | | | | | | | | | | | | | Handle the smoothstep degenerate case of empty range
| * | | | This PR handles the smoothstep degenerate case where the range is empty.Malcolm Nixon2024-08-151-2/+10
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | It also updates the documentation to describe positive and negative ranges. Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro> Co-Authored-By: kleonc <9283098+kleonc@users.noreply.github.com>
* / / / Fixed Timestep Interpolation (3D)Ricardo Buring2024-07-072-1/+388
|/ / / | | | | | | | | | | | | | | | | | | Adds 3D fixed timestep interpolation to the rendering server. This does not yet include support for multimeshes or particles. Co-authored-by: lawnjelly <lawnjelly@gmail.com>
* | / Add a check to prevent user to call `AStarGrid2D::update` when its not neededYuri Rubinsky2024-07-061-0/+4
| |/ |/|
* | Physics Interpolation - Fix `interpolated_transform_2d`lawnjelly2024-07-021-32/+2
| | | | | | | | Uses the skew correct `Transform2D::interpolate_with()` function rather than the bugged 3.x version.
* | Merge pull request #90582 from Repiteo/core/remove-macro-_NO_DISCARD_Rémi Verschelde2024-06-2517-17/+17
|\ \ | | | | | | | | | Core: Replace `_NO_DISCARD_` macro with `[[nodiscard]]`
| * | Core: Replace `_NO_DISCARD_` macro with attributeThaddeus Crews2024-04-1217-17/+17
| | |
* | | Optimize `Color::find_named_color()`Danil Alexeev2024-05-232-13/+13
| | |
* | | Clarify is_polygon_clockwise() coordinate systemlawnjelly2024-05-201-0/+2
| |/ |/| | | | | The function assumes a normal Cartesian coordinate system.
* | Fix AABB Ray intersection - return insidelawnjelly2024-05-092-22/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Separates find_intersects from test_intersects for rays, and wraps the former. * Changes parameter name to "r_intersection_point". * Fixes broken old version which returned per axis t. * Returns whether the ray origin is within the AABB. * Returns intersection point when origin outside. * Returns "backtracking" intersection point when inside. * Returns sensible normal when inside. * Returns valid results on borders. * Returns robust results dealing with floating point error. Co-authored-by: Claire Blackshaw <evilkimau@gmail.com>
* | Fix `builtin_embree=no` build linking the wrong version of EmbreeJakub Marcowski2024-05-081-1/+1
| |
* | Add PackedVector4Array Variant typeK. S. Ernest (iFire) Lee2024-05-032-21/+15
| | | | | | | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* | [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`A Thousand Ships2024-05-0218-8/+164
| | | | | | | | Convenience for a number of cases operating on single values
* | Merge pull request #90748 from aaronfranke/fix-basis-scale-globalRémi Verschelde2024-04-222-2/+2
|\ \ | | | | | | | | | Fix incorrect name of internal Basis global scale getter
| * | Fix incorrect name of Basis global scale getterAaron Franke2024-04-162-2/+2
| |/