:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.5/modules/visual_script/doc_classes/VisualScriptMathConstant.xml. .. _class_VisualScriptMathConstant: VisualScriptMathConstant ======================== **Inherits:** :ref:`VisualScriptNode` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` Commonly used mathematical constants. Description ----------- Provides common math constants, such as Pi, on an output Data port. \ **Input Ports:**\ none \ **Output Ports:**\ - Data (variant): ``get`` Properties ---------- +-----------------------------------------------------------------+-------------------------------------------------------------------+-------+ | :ref:`MathConstant` | :ref:`constant` | ``0`` | +-----------------------------------------------------------------+-------------------------------------------------------------------+-------+ Enumerations ------------ .. _enum_VisualScriptMathConstant_MathConstant: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_ONE: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_PI: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_HALF_PI: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_TAU: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_E: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_SQRT2: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_INF: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_NAN: .. _class_VisualScriptMathConstant_constant_MATH_CONSTANT_MAX: enum **MathConstant**: - **MATH_CONSTANT_ONE** = **0** --- Unity: ``1``. - **MATH_CONSTANT_PI** = **1** --- Pi: ``3.141593``. - **MATH_CONSTANT_HALF_PI** = **2** --- Pi divided by two: ``1.570796``. - **MATH_CONSTANT_TAU** = **3** --- Tau: ``6.283185``. - **MATH_CONSTANT_E** = **4** --- Mathematical constant ``e``, the natural log base: ``2.718282``. - **MATH_CONSTANT_SQRT2** = **5** --- Square root of two: ``1.414214``. - **MATH_CONSTANT_INF** = **6** --- Infinity: ``inf``. - **MATH_CONSTANT_NAN** = **7** --- Not a number: ``nan``. - **MATH_CONSTANT_MAX** = **8** --- Represents the size of the :ref:`MathConstant` enum. Property Descriptions --------------------- .. _class_VisualScriptMathConstant_property_constant: - :ref:`MathConstant` **constant** +-----------+--------------------------+ | *Default* | ``0`` | +-----------+--------------------------+ | *Setter* | set_math_constant(value) | +-----------+--------------------------+ | *Getter* | get_math_constant() | +-----------+--------------------------+ The math constant. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`