mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use the standard C INFINITY
and NAN
constants directly
The `Math_INF` and `Math_NAN` defines were just aliases for those constants, so we might as well use them directly. Some portions of the code were already using `INFINITY` directly.
This commit is contained in:
parent
8cc599db64
commit
4bd5e4fd9b
14 changed files with 23 additions and 25 deletions
|
@ -1637,8 +1637,8 @@ void GDScriptLanguage::init() {
|
|||
|
||||
_add_global(StaticCString::create("PI"), Math_PI);
|
||||
_add_global(StaticCString::create("TAU"), Math_TAU);
|
||||
_add_global(StaticCString::create("INF"), Math_INF);
|
||||
_add_global(StaticCString::create("NAN"), Math_NAN);
|
||||
_add_global(StaticCString::create("INF"), INFINITY);
|
||||
_add_global(StaticCString::create("NAN"), NAN);
|
||||
|
||||
//populate native classes
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue