summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGoutte <antoine.goutenoir@gmail.com>2017-11-04 10:34:27 +0100
committerGoutte <antoine.goutenoir@gmail.com>2017-11-12 13:32:35 +0100
commit91ca725f9b5a4a77ca70024e3bb73b7c7821a530 (patch)
tree25e9405df87017425863586ae8ab3f6c756577c5 /doc
parentc1855dcff14a118828de16e850b0698dc76b25e9 (diff)
Add support for the TAU constant. Fixes #12094.
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/@GDScript.xml5
-rw-r--r--doc/classes/VisualScriptMathConstant.xml8
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml
index 9c1d9a1aa2..3c794a4c4c 100644
--- a/doc/classes/@GDScript.xml
+++ b/doc/classes/@GDScript.xml
@@ -1117,7 +1117,10 @@
</methods>
<constants>
<constant name="PI" value="3.141593" enum="">
- Constant that represents how many times the diameter of a circumference fits around its perimeter.
+ Constant that represents how many times the diameter of a circle fits around its perimeter.
+ </constant>
+ <constant name="TAU" value="6.2831853" enum="">
+ The circle constant, the circumference of the unit circle.
</constant>
<constant name="INF" value="inf" enum="">
A positive infinity. (For negative infinity, use -INF).
diff --git a/doc/classes/VisualScriptMathConstant.xml b/doc/classes/VisualScriptMathConstant.xml
index 86744e5caf..c753c16218 100644
--- a/doc/classes/VisualScriptMathConstant.xml
+++ b/doc/classes/VisualScriptMathConstant.xml
@@ -42,12 +42,12 @@
<constant name="MATH_CONSTANT_PI" value="1">
Pi: [code]3.141593[/code]
</constant>
- <constant name="MATH_CONSTANT_2PI" value="2">
- Pi times two: [code]6.283185[/code]
- </constant>
- <constant name="MATH_CONSTANT_HALF_PI" value="3">
+ <constant name="MATH_CONSTANT_HALF_PI" value="2">
Pi divided by two: [code]1.570796[/code]
</constant>
+ <constant name="MATH_CONSTANT_TAU" value="3">
+ Tau: [code]6.283185[/code]
+ </constant>
<constant name="MATH_CONSTANT_E" value="4">
Natural log: [code]2.718282[/code]
</constant>