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
|
@ -2720,16 +2720,16 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_builtin_constant(Expressio
|
|||
|
||||
switch (op_type) {
|
||||
case GDScriptTokenizer::Token::CONST_PI:
|
||||
constant->value = Math_PI;
|
||||
constant->value = Math::PI;
|
||||
break;
|
||||
case GDScriptTokenizer::Token::CONST_TAU:
|
||||
constant->value = Math_TAU;
|
||||
constant->value = Math::TAU;
|
||||
break;
|
||||
case GDScriptTokenizer::Token::CONST_INF:
|
||||
constant->value = INFINITY;
|
||||
constant->value = Math::INF;
|
||||
break;
|
||||
case GDScriptTokenizer::Token::CONST_NAN:
|
||||
constant->value = NAN;
|
||||
constant->value = Math::NaN;
|
||||
break;
|
||||
default:
|
||||
return nullptr; // Unreachable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue