12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the VisualScriptMathConstant.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_VisualScriptMathConstant:
- VisualScriptMathConstant
- ========================
- **Inherits:** :ref:`VisualScriptNode<class_visualscriptnode>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Commonly used mathematical constants.
- Member Functions
- ----------------
- +------------------------+--------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_math_constant<class_VisualScriptMathConstant_get_math_constant>` **(** **)** |
- +------------------------+--------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_math_constant<class_VisualScriptMathConstant_set_math_constant>` **(** :ref:`int<class_int>` which **)** |
- +------------------------+--------------------------------------------------------------------------------------------------------------------+
- Member Variables
- ----------------
- .. _class_VisualScriptMathConstant_constant:
- - :ref:`int<class_int>` **constant** - The math constant.
- Numeric Constants
- -----------------
- - **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** --- Natural log: ``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**
- Description
- -----------
- Provides common math constants, such as Pi or Euler's constant, on an output Data port.
- **Input Ports:**
- none
- **Output Ports:**
- - Data (variant): ``get``
- Member Function Description
- ---------------------------
- .. _class_VisualScriptMathConstant_get_math_constant:
- - :ref:`int<class_int>` **get_math_constant** **(** **)**
- .. _class_VisualScriptMathConstant_set_math_constant:
- - void **set_math_constant** **(** :ref:`int<class_int>` which **)**
|