You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use Math_TAU and deg2rad/rad2deg in more places and optimize code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user