class_visualscriptmathconstant.rst 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualScriptMathConstant.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualScriptMathConstant:
  6. VisualScriptMathConstant
  7. ========================
  8. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Commonly used mathematical constants.
  13. Properties
  14. ----------
  15. +-----------------------------------------------------------------+-------------------------------------------------------------------+
  16. | :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` | :ref:`constant<class_VisualScriptMathConstant_property_constant>` |
  17. +-----------------------------------------------------------------+-------------------------------------------------------------------+
  18. Enumerations
  19. ------------
  20. .. _enum_VisualScriptMathConstant_MathConstant:
  21. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_ONE:
  22. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_PI:
  23. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_HALF_PI:
  24. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_TAU:
  25. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_E:
  26. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_SQRT2:
  27. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_INF:
  28. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_NAN:
  29. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_MAX:
  30. enum **MathConstant**:
  31. - **MATH_CONSTANT_ONE** = **0** --- Unity: ``1``
  32. - **MATH_CONSTANT_PI** = **1** --- Pi: ``3.141593``
  33. - **MATH_CONSTANT_HALF_PI** = **2** --- Pi divided by two: ``1.570796``
  34. - **MATH_CONSTANT_TAU** = **3** --- Tau: ``6.283185``
  35. - **MATH_CONSTANT_E** = **4** --- Mathematical constant ``e``, the natural log base: ``2.718282``
  36. - **MATH_CONSTANT_SQRT2** = **5** --- Square root of two: ``1.414214``
  37. - **MATH_CONSTANT_INF** = **6** --- Infinity: ``inf``
  38. - **MATH_CONSTANT_NAN** = **7** --- Not a number: ``nan``
  39. - **MATH_CONSTANT_MAX** = **8** --- Represents the size of the :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` enum.
  40. Description
  41. -----------
  42. Provides common math constants, such as Pi, on an output Data port.
  43. **Input Ports:**
  44. none
  45. **Output Ports:**
  46. - Data (variant): ``get``
  47. Property Descriptions
  48. ---------------------
  49. .. _class_VisualScriptMathConstant_property_constant:
  50. - :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **constant**
  51. +----------+--------------------------+
  52. | *Setter* | set_math_constant(value) |
  53. +----------+--------------------------+
  54. | *Getter* | get_math_constant() |
  55. +----------+--------------------------+
  56. The math constant.