mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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:
parent
c5c1cd4440
commit
ad40939b6f
101 changed files with 414 additions and 498 deletions
|
|
@ -833,7 +833,7 @@ void GPUParticles2D::_draw_emission_gizmo() {
|
|||
draw_circle(Vector2(), pm->get_emission_ring_radius(), emission_ring_color, false);
|
||||
} else {
|
||||
Vector2 a = Vector2(pm->get_emission_ring_height() / -2.0, pm->get_emission_ring_radius() / -1.0);
|
||||
Vector2 b = Vector2(-a.x, MIN(a.y + tan((90.0 - pm->get_emission_ring_cone_angle()) * 0.01745329) * pm->get_emission_ring_height(), 0.0));
|
||||
Vector2 b = Vector2(-a.x, MIN(a.y + std::tan((90.0 - pm->get_emission_ring_cone_angle()) * 0.01745329) * pm->get_emission_ring_height(), 0.0));
|
||||
Vector2 c = Vector2(b.x, -b.y);
|
||||
Vector2 d = Vector2(a.x, -a.y);
|
||||
if (ring_axis.is_equal_approx(Vector3(1.0, 0.0, 0.0))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue