mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Core: Use Math
namespace for constants
This commit is contained in:
parent
06c71fbf40
commit
94282d88f9
181 changed files with 812 additions and 818 deletions
|
@ -1440,7 +1440,7 @@ void RendererCanvasCull::canvas_item_add_circle(RID p_item, const Point2 &p_pos,
|
|||
// Store circle center in the last point.
|
||||
points_ptr[circle_segments + 1] = p_pos;
|
||||
|
||||
const real_t circle_point_step = Math_TAU / circle_segments;
|
||||
const real_t circle_point_step = Math::TAU / circle_segments;
|
||||
|
||||
for (int i = 0; i < circle_segments + 1; i++) {
|
||||
float angle = i * circle_point_step;
|
||||
|
@ -1484,7 +1484,7 @@ void RendererCanvasCull::canvas_item_add_circle(RID p_item, const Point2 &p_pos,
|
|||
points.resize(2 * circle_segments + 2);
|
||||
colors.resize(2 * circle_segments + 2);
|
||||
|
||||
const real_t circle_point_step = Math_TAU / circle_segments;
|
||||
const real_t circle_point_step = Math::TAU / circle_segments;
|
||||
|
||||
Vector2 *points_ptr = points.ptrw();
|
||||
Color *colors_ptr = colors.ptrw();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue