File: VisualScriptMathConstant.xml

package info (click to toggle)
godot 3.2.3-stable-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 121,308 kB
  • sloc: cpp: 804,285; ansic: 597,434; xml: 77,823; asm: 17,127; cs: 13,535; lisp: 12,017; python: 9,376; java: 7,474; sh: 973; javascript: 659; perl: 264; pascal: 203; objc: 116; makefile: 105
file content (51 lines) | stat: -rw-r--r-- 1,814 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VisualScriptMathConstant" inherits="VisualScriptNode" version="3.2">
	<brief_description>
		Commonly used mathematical constants.
	</brief_description>
	<description>
		Provides common math constants, such as Pi, on an output Data port.
		[b]Input Ports:[/b]
		none
		[b]Output Ports:[/b]
		- Data (variant): [code]get[/code]
	</description>
	<tutorials>
	</tutorials>
	<methods>
	</methods>
	<members>
		<member name="constant" type="int" setter="set_math_constant" getter="get_math_constant" enum="VisualScriptMathConstant.MathConstant" default="0">
			The math constant.
		</member>
	</members>
	<constants>
		<constant name="MATH_CONSTANT_ONE" value="0" enum="MathConstant">
			Unity: [code]1[/code].
		</constant>
		<constant name="MATH_CONSTANT_PI" value="1" enum="MathConstant">
			Pi: [code]3.141593[/code].
		</constant>
		<constant name="MATH_CONSTANT_HALF_PI" value="2" enum="MathConstant">
			Pi divided by two: [code]1.570796[/code].
		</constant>
		<constant name="MATH_CONSTANT_TAU" value="3" enum="MathConstant">
			Tau: [code]6.283185[/code].
		</constant>
		<constant name="MATH_CONSTANT_E" value="4" enum="MathConstant">
			Mathematical constant [code]e[/code], the natural log base: [code]2.718282[/code].
		</constant>
		<constant name="MATH_CONSTANT_SQRT2" value="5" enum="MathConstant">
			Square root of two: [code]1.414214[/code].
		</constant>
		<constant name="MATH_CONSTANT_INF" value="6" enum="MathConstant">
			Infinity: [code]inf[/code].
		</constant>
		<constant name="MATH_CONSTANT_NAN" value="7" enum="MathConstant">
			Not a number: [code]nan[/code].
		</constant>
		<constant name="MATH_CONSTANT_MAX" value="8" enum="MathConstant">
			Represents the size of the [enum MathConstant] enum.
		</constant>
	</constants>
</class>