mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Inf and NaN support added to GDScript.
This commit is contained in:
parent
0f8c6dd382
commit
5e938f0001
11 changed files with 53 additions and 4 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue