1
0
Fork 0
godot/core/math
aaronp64 8fb3697916 Avoid single character String allocations when appending characters
Removed calls to String::chr() when appending characters to Strings in Expression, Resource, and VariantParser, to avoid creating temporary Strings for each character.  Also updated the Resource case to resize String up front, since size is known.
2025-05-12 17:35:42 -04:00
..
SCsub SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
a_star.compat.inc add partial path return option for astar 2024-04-03 22:27:33 -07:00
a_star.cpp Smoke test: In collections, log an error if `reserve()` is called with a number smaller than the current size. Don't log an error if it is called with a number smaller than the current capacity. 2025-04-23 16:47:47 +02:00
a_star.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
a_star_grid_2d.compat.inc add partial path return option for astar 2024-04-03 22:27:33 -07:00
a_star_grid_2d.cpp Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
a_star_grid_2d.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
aabb.cpp Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
aabb.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
audio_frame.h Merge pull request #104239 from Ivorforce/optimize-undenormalize 2025-04-14 19:39:46 -05:00
basis.cpp Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
basis.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
bvh.h Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
bvh_abb.h Style: Begin integrating simple `.clangd` fixes 2025-03-22 13:24:35 -05:00
bvh_cull.inc
bvh_debug.inc Fix some uses of float and real_t in core/math 2024-03-29 16:44:12 -07:00
bvh_integrity.inc
bvh_logic.inc Style: Add 19.1.0 LLVM options to `.clang-format` 2024-11-22 09:24:32 -06:00
bvh_misc.inc Style: Add 19.1.0 LLVM options to `.clang-format` 2024-11-22 09:24:32 -06:00
bvh_pair.inc Core ubsan fixes 2024-12-18 14:31:12 +01:00
bvh_public.inc
bvh_refit.inc
bvh_split.inc Fix some uses of float and real_t in core/math 2024-03-29 16:44:12 -07:00
bvh_structs.inc Style: Add 19.1.0 LLVM options to `.clang-format` 2024-11-22 09:24:32 -06:00
bvh_tree.h Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
color.cpp Optimize Color.html() 2025-04-05 14:00:30 +03:00
color.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
color_names.inc Style: Begin integrating simple `.clangd` fixes 2025-03-22 13:24:35 -05:00
convex_hull.cpp Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
convex_hull.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
delaunay_2d.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
delaunay_3d.h Style: Begin integrating simple `.clangd` fixes 2025-03-22 13:24:35 -05:00
disjoint_set.h Style: Begin integrating simple `.clangd` fixes 2025-03-22 13:24:35 -05:00
dynamic_bvh.cpp Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
dynamic_bvh.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
expression.cpp Avoid single character String allocations when appending characters 2025-05-12 17:35:42 -04:00
expression.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
face3.cpp Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
face3.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
geometry_2d.cpp Using iterator pattern instead of List::Element *. 2025-03-28 13:29:15 +08:00
geometry_2d.h Core: Integrate warning suppression macro helpers 2025-04-03 10:13:46 -05:00
geometry_3d.cpp Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
geometry_3d.h Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
math_defs.h Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
math_fieldwise.cpp Allow to select multiple remote nodes at runtime 2025-03-11 12:35:41 -03:00
math_fieldwise.h Allow to select multiple remote nodes at runtime 2025-03-11 12:35:41 -03:00
math_funcs.cpp Core: Convert `Math` class to namespace 2025-03-21 10:29:18 -05:00
math_funcs.h Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
plane.cpp Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
plane.h Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
projection.cpp Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
projection.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
quaternion.cpp Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
quaternion.h Use Math::abs to avoid ambiguity with integer abs 2025-04-14 23:54:07 +02:00
quick_hull.cpp Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
quick_hull.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
random_number_generator.cpp
random_number_generator.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
random_pcg.cpp Fix RandomPCG::random(int, int) overflow bug 2025-05-06 17:54:12 -04:00
random_pcg.h Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
rect2.cpp [Core] Add `is_same` to types that have float components 2025-02-03 19:25:50 +01:00
rect2.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
rect2i.cpp
rect2i.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
static_raycaster.cpp
static_raycaster.h Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
transform_2d.cpp Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
transform_2d.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
transform_3d.cpp Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
transform_3d.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
transform_interpolator.cpp Fixed Timestep Interpolation (3D) 2024-07-07 22:15:23 +02:00
transform_interpolator.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
triangle_mesh.cpp Expose TriangleMesh api functions wrapped for scripting 2025-04-02 09:52:35 +02:00
triangle_mesh.h Expose TriangleMesh api functions wrapped for scripting 2025-04-02 09:52:35 +02:00
triangulate.cpp
triangulate.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
vector2.cpp [Core] Add `is_same` to types that have float components 2025-02-03 19:25:50 +01:00
vector2.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
vector2i.cpp Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
vector2i.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
vector3.cpp [Core] Add `is_same` to types that have float components 2025-02-03 19:25:50 +01:00
vector3.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
vector3i.cpp [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)` 2024-05-02 10:31:13 +02:00
vector3i.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
vector4.cpp [Core] Add `is_same` to types that have float components 2025-02-03 19:25:50 +01:00
vector4.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00
vector4i.cpp [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)` 2024-05-02 10:31:13 +02:00
vector4i.h Core: Add `constexpr` constructors/operators to math structs 2025-03-17 12:15:31 -05:00