Core: Use Math namespace for constants
This commit is contained in:
parent
06c71fbf40
commit
94282d88f9
181 changed files with 812 additions and 818 deletions
|
|
@ -193,7 +193,7 @@ Point2 TextureProgressBar::unit_val_to_uv(float val) {
|
|||
Point2 p = get_relative_center();
|
||||
|
||||
// Minimal version of Liang-Barsky clipping algorithm
|
||||
float angle = (val * Math_TAU) - Math_PI * 0.5;
|
||||
float angle = (val * Math::TAU) - Math::PI * 0.5;
|
||||
Point2 dir = Vector2(Math::cos(angle), Math::sin(angle));
|
||||
float t1 = 1.0;
|
||||
float cp = 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue