diff options
| author | Aaron Franke <arnfranke@yahoo.com> | 2020-04-03 05:50:40 -0400 |
|---|---|---|
| committer | Aaron Franke <arnfranke@yahoo.com> | 2021-01-09 03:47:14 -0500 |
| commit | 1d5042c9e265219dec8da7311879f12ef3ef698b (patch) | |
| tree | 9456ab509bbcaf26cad8dca32dbe18a3cca9277d /scene/2d/line_builder.cpp | |
| parent | 98ccaa1bad97bdb83b2afd6a4df6f7a392745592 (diff) | |
| download | redot-engine-1d5042c9e265219dec8da7311879f12ef3ef698b.tar.gz | |
Use Math_TAU and deg2rad/rad2deg in more places and optimize code
Diffstat (limited to 'scene/2d/line_builder.cpp')
| -rw-r--r-- | scene/2d/line_builder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/line_builder.cpp b/scene/2d/line_builder.cpp index 2f4459785b..5e48a61ff7 100644 --- a/scene/2d/line_builder.cpp +++ b/scene/2d/line_builder.cpp @@ -554,7 +554,7 @@ void LineBuilder::new_arc(Vector2 center, Vector2 vbegin, float angle_delta, Col float t = Vector2(1, 0).angle_to(vbegin); float end_angle = t + angle_delta; Vector2 rpos(0, 0); - float tt_begin = -Math_PI / 2.f; + float tt_begin = -Math_PI / 2.0f; float tt = tt_begin; // Center vertice |
