2017-09-12 20:42:36 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2022-08-05 16:51:38 +00:00
|
|
|
<class name="VisualScriptMathConstant" inherits="VisualScriptNode" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
2017-09-12 20:42:36 +00:00
|
|
|
<brief_description>
|
2017-10-15 03:11:00 +00:00
|
|
|
Commonly used mathematical constants.
|
2017-09-12 20:42:36 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2018-04-15 16:40:31 +00:00
|
|
|
Provides common math constants, such as Pi, on an output Data port.
|
2017-10-15 03:11:00 +00:00
|
|
|
[b]Input Ports:[/b]
|
|
|
|
none
|
|
|
|
[b]Output Ports:[/b]
|
|
|
|
- Data (variant): [code]get[/code]
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="constant" type="int" setter="set_math_constant" getter="get_math_constant" enum="VisualScriptMathConstant.MathConstant" default="0">
|
2017-10-15 03:11:00 +00:00
|
|
|
The math constant.
|
2017-09-12 20:42:36 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_ONE" value="0" enum="MathConstant">
|
2020-01-23 10:14:14 +00:00
|
|
|
Unity: [code]1[/code].
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_PI" value="1" enum="MathConstant">
|
2020-01-23 10:14:14 +00:00
|
|
|
Pi: [code]3.141593[/code].
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_HALF_PI" value="2" enum="MathConstant">
|
2020-01-23 10:14:14 +00:00
|
|
|
Pi divided by two: [code]1.570796[/code].
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_TAU" value="3" enum="MathConstant">
|
2020-01-23 10:14:14 +00:00
|
|
|
Tau: [code]6.283185[/code].
|
2017-11-04 09:34:27 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_E" value="4" enum="MathConstant">
|
2020-01-23 10:14:14 +00:00
|
|
|
Mathematical constant [code]e[/code], the natural log base: [code]2.718282[/code].
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_SQRT2" value="5" enum="MathConstant">
|
2020-01-23 10:14:14 +00:00
|
|
|
Square root of two: [code]1.414214[/code].
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_INF" value="6" enum="MathConstant">
|
2020-01-23 10:14:14 +00:00
|
|
|
Infinity: [code]inf[/code].
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_NAN" value="7" enum="MathConstant">
|
2020-01-23 10:14:14 +00:00
|
|
|
Not a number: [code]nan[/code].
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MATH_CONSTANT_MAX" value="8" enum="MathConstant">
|
2019-06-27 09:10:53 +00:00
|
|
|
Represents the size of the [enum MathConstant] enum.
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-09-12 20:42:36 +00:00
|
|
|
</constants>
|
|
|
|
</class>
|