You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user