You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
doc: Make all module docs self-contained
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="VisualScriptMathConstant" inherits="VisualScriptNode" category="Core" version="3.0-alpha">
|
||||
<brief_description>
|
||||
Commonly used mathematical constants.
|
||||
</brief_description>
|
||||
<description>
|
||||
Provides common math constants, such as Pi or Euler's constant, on an output Data port.
|
||||
[b]Input Ports:[/b]
|
||||
none
|
||||
[b]Output Ports:[/b]
|
||||
- Data (variant): [code]get[/code]
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<demos>
|
||||
</demos>
|
||||
<methods>
|
||||
<method name="get_math_constant">
|
||||
<return type="int" enum="VisualScriptMathConstant.MathConstant">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_math_constant">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="which" type="int" enum="VisualScriptMathConstant.MathConstant">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="constant" type="int" setter="set_math_constant" getter="get_math_constant" enum="VisualScriptMathConstant.MathConstant">
|
||||
The math constant.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="MATH_CONSTANT_ONE" value="0">
|
||||
Unity: [code]1[/code]
|
||||
</constant>
|
||||
<constant name="MATH_CONSTANT_PI" value="1">
|
||||
Pi: [code]3.141593[/code]
|
||||
</constant>
|
||||
<constant name="MATH_CONSTANT_HALF_PI" value="2">
|
||||
Pi divided by two: [code]1.570796[/code]
|
||||
</constant>
|
||||
<constant name="MATH_CONSTANT_TAU" value="3">
|
||||
Tau: [code]6.283185[/code]
|
||||
</constant>
|
||||
<constant name="MATH_CONSTANT_E" value="4">
|
||||
Natural log: [code]2.718282[/code]
|
||||
</constant>
|
||||
<constant name="MATH_CONSTANT_SQRT2" value="5">
|
||||
Square root of two: [code]1.414214[/code]
|
||||
</constant>
|
||||
<constant name="MATH_CONSTANT_INF" value="6">
|
||||
Infinity: [code]inf[/code]
|
||||
</constant>
|
||||
<constant name="MATH_CONSTANT_NAN" value="7">
|
||||
Not a number: [code]nan[/code]
|
||||
</constant>
|
||||
<constant name="MATH_CONSTANT_MAX" value="8">
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
Reference in New Issue
Block a user