class_visualscriptmathconstant.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualScriptMathConstant.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualScriptMathConstant:
  5. VisualScriptMathConstant
  6. ========================
  7. **Inherits:** :ref:`VisualScriptNode<class_visualscriptnode>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Commonly used mathematical constants.
  12. Member Variables
  13. ----------------
  14. .. _class_VisualScriptMathConstant_constant:
  15. - :ref:`MathConstant<enum_visualscriptmathconstant_mathconstant>` **constant** - The math constant.
  16. Enums
  17. -----
  18. .. _enum_VisualScriptMathConstant_MathConstant:
  19. enum **MathConstant**
  20. - **MATH_CONSTANT_ONE** = **0** --- Unity: ``1``
  21. - **MATH_CONSTANT_PI** = **1** --- Pi: ``3.141593``
  22. - **MATH_CONSTANT_HALF_PI** = **2** --- Pi divided by two: ``1.570796``
  23. - **MATH_CONSTANT_TAU** = **3** --- Tau: ``6.283185``
  24. - **MATH_CONSTANT_E** = **4** --- Mathematical constant ``e``, the natural log base: ``2.718282``
  25. - **MATH_CONSTANT_SQRT2** = **5** --- Square root of two: ``1.414214``
  26. - **MATH_CONSTANT_INF** = **6** --- Infinity: ``inf``
  27. - **MATH_CONSTANT_NAN** = **7** --- Not a number: ``nan``
  28. - **MATH_CONSTANT_MAX** = **8**
  29. Description
  30. -----------
  31. Provides common math constants, such as Pi, on an output Data port.
  32. **Input Ports:**
  33. none
  34. **Output Ports:**
  35. - Data (variant): ``get``