| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
					
						
							| 
									
										
										
										
											2018-02-27 13:40:43 +01:00
										 |  |  | <class name="VisualScriptMathConstant" inherits="VisualScriptNode" category="Core" version="3.1"> | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	<brief_description> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 		Commonly used mathematical constants. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</brief_description> | 
					
						
							|  |  |  | 	<description> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 		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] | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</description> | 
					
						
							|  |  |  | 	<tutorials> | 
					
						
							|  |  |  | 	</tutorials> | 
					
						
							|  |  |  | 	<demos> | 
					
						
							|  |  |  | 	</demos> | 
					
						
							|  |  |  | 	<methods> | 
					
						
							|  |  |  | 	</methods> | 
					
						
							|  |  |  | 	<members> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="constant" type="int" setter="set_math_constant" getter="get_math_constant" enum="VisualScriptMathConstant.MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 			The math constant. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							|  |  |  | 	</members> | 
					
						
							|  |  |  | 	<constants> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_ONE" value="0" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 			Unity: [code]1[/code] | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_PI" value="1" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 			Pi: [code]3.141593[/code] | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_HALF_PI" value="2" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 			Pi divided by two: [code]1.570796[/code] | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_TAU" value="3" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-11-04 10:34:27 +01:00
										 |  |  | 			Tau: [code]6.283185[/code] | 
					
						
							|  |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_E" value="4" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 			Natural log: [code]2.718282[/code] | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_SQRT2" value="5" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 			Square root of two: [code]1.414214[/code] | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_INF" value="6" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 			Infinity: [code]inf[/code] | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_NAN" value="7" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-10-14 20:11:00 -07:00
										 |  |  | 			Not a number: [code]nan[/code] | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 |  |  | 		<constant name="MATH_CONSTANT_MAX" value="8" enum="MathConstant"> | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</constants> | 
					
						
							|  |  |  | </class> |