Use Math_TAU and deg2rad/rad2deg in more places and optimize code
This commit is contained in:
parent
98ccaa1bad
commit
1d5042c9e2
34 changed files with 149 additions and 130 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue