1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Merge pull request #12627 from Goutte/feat-support-tau

Add support for TAU constant.
This commit is contained in:
Rémi Verschelde
2017-11-12 21:11:39 +01:00
committed by GitHub
11 changed files with 34 additions and 9 deletions

View File

@@ -337,6 +337,11 @@ void GDScriptLanguage::get_public_constants(List<Pair<String, Variant> > *p_cons
pi.second = Math_PI;
p_constants->push_back(pi);
Pair<String, Variant> tau;
tau.first = "TAU";
tau.second = Math_TAU;
p_constants->push_back(tau);
Pair<String, Variant> infinity;
infinity.first = "INF";
infinity.second = Math_INF;