1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Core: Replace C math headers with C++ equivalents

- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
This commit is contained in:
Thaddeus Crews
2025-03-19 14:18:09 -05:00
parent c5c1cd4440
commit ad40939b6f
101 changed files with 414 additions and 498 deletions

View File

@@ -473,7 +473,7 @@ void Path3DGizmo::redraw() {
const int n = 36;
for (int i = 0; i <= n; i++) {
const float a = Math::TAU * i / n;
const Vector3 edge = sin(a) * side + cos(a) * up;
const Vector3 edge = std::sin(a) * side + std::cos(a) * up;
disk.append(pos + edge * disk_size);
}
add_vertices(disk, debug_material, Mesh::PRIMITIVE_LINE_STRIP);