2
0

class_visualscriptmathconstant.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/modules/visual_script/doc_classes/VisualScriptMathConstant.xml.
  6. .. _class_VisualScriptMathConstant:
  7. VisualScriptMathConstant
  8. ========================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Commonly used mathematical constants.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Provides common math constants, such as Pi, on an output Data port.
  15. \ **Input Ports:**\
  16. none
  17. \ **Output Ports:**\
  18. - Data (variant): ``get``
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +-----------------------------------------------------------------+-------------------------------------------------------------------+-------+
  25. | :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` | :ref:`constant<class_VisualScriptMathConstant_property_constant>` | ``0`` |
  26. +-----------------------------------------------------------------+-------------------------------------------------------------------+-------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Enumerations
  31. ------------
  32. .. _enum_VisualScriptMathConstant_MathConstant:
  33. .. rst-class:: classref-enumeration
  34. enum **MathConstant**:
  35. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_ONE:
  36. .. rst-class:: classref-enumeration-constant
  37. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_ONE** = ``0``
  38. Unity: ``1``.
  39. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_PI:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_PI** = ``1``
  42. Pi: ``3.141593``.
  43. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_HALF_PI:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_HALF_PI** = ``2``
  46. Pi divided by two: ``1.570796``.
  47. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_TAU:
  48. .. rst-class:: classref-enumeration-constant
  49. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_TAU** = ``3``
  50. Tau: ``6.283185``.
  51. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_E:
  52. .. rst-class:: classref-enumeration-constant
  53. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_E** = ``4``
  54. Mathematical constant ``e``, the natural log base: ``2.718282``.
  55. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_SQRT2:
  56. .. rst-class:: classref-enumeration-constant
  57. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_SQRT2** = ``5``
  58. Square root of two: ``1.414214``.
  59. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_INF:
  60. .. rst-class:: classref-enumeration-constant
  61. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_INF** = ``6``
  62. Infinity: ``inf``.
  63. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_NAN:
  64. .. rst-class:: classref-enumeration-constant
  65. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_NAN** = ``7``
  66. Not a number: ``nan``.
  67. .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_MAX:
  68. .. rst-class:: classref-enumeration-constant
  69. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **MATH_CONSTANT_MAX** = ``8``
  70. Represents the size of the :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` enum.
  71. .. rst-class:: classref-section-separator
  72. ----
  73. .. rst-class:: classref-descriptions-group
  74. Property Descriptions
  75. ---------------------
  76. .. _class_VisualScriptMathConstant_property_constant:
  77. .. rst-class:: classref-property
  78. :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **constant** = ``0``
  79. .. rst-class:: classref-property-setget
  80. - void **set_math_constant** **(** :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` value **)**
  81. - :ref:`MathConstant<enum_VisualScriptMathConstant_MathConstant>` **get_math_constant** **(** **)**
  82. The math constant.
  83. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  84. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  85. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  86. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`