1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Inf and NaN support added to GDScript.

This commit is contained in:
Saracen
2017-02-06 22:44:22 +00:00
parent 0f8c6dd382
commit 5e938f0001
11 changed files with 53 additions and 4 deletions

View File

@@ -1738,6 +1738,8 @@ const char* VisualScriptMathConstant::const_name[MATH_CONSTANT_MAX]={
"PI/2",
"E",
"Sqrt2",
"INF",
"NAN"
};
double VisualScriptMathConstant::const_value[MATH_CONSTANT_MAX]={
@@ -1746,7 +1748,9 @@ double VisualScriptMathConstant::const_value[MATH_CONSTANT_MAX]={
Math_PI*2,
Math_PI*0.5,
2.71828182845904523536,
Math::sqrt(2.0)
Math::sqrt(2.0),
Math_INF,
Math_NAN
};