VisualScriptMathConstant.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptMathConstant" inherits="VisualScriptNode" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  3. <brief_description>
  4. Commonly used mathematical constants.
  5. </brief_description>
  6. <description>
  7. Provides common math constants, such as Pi, on an output Data port.
  8. [b]Input Ports:[/b]
  9. none
  10. [b]Output Ports:[/b]
  11. - Data (variant): [code]get[/code]
  12. </description>
  13. <tutorials>
  14. </tutorials>
  15. <members>
  16. <member name="constant" type="int" setter="set_math_constant" getter="get_math_constant" enum="VisualScriptMathConstant.MathConstant" default="0">
  17. The math constant.
  18. </member>
  19. </members>
  20. <constants>
  21. <constant name="MATH_CONSTANT_ONE" value="0" enum="MathConstant">
  22. Unity: [code]1[/code].
  23. </constant>
  24. <constant name="MATH_CONSTANT_PI" value="1" enum="MathConstant">
  25. Pi: [code]3.141593[/code].
  26. </constant>
  27. <constant name="MATH_CONSTANT_HALF_PI" value="2" enum="MathConstant">
  28. Pi divided by two: [code]1.570796[/code].
  29. </constant>
  30. <constant name="MATH_CONSTANT_TAU" value="3" enum="MathConstant">
  31. Tau: [code]6.283185[/code].
  32. </constant>
  33. <constant name="MATH_CONSTANT_E" value="4" enum="MathConstant">
  34. Mathematical constant [code]e[/code], the natural log base: [code]2.718282[/code].
  35. </constant>
  36. <constant name="MATH_CONSTANT_SQRT2" value="5" enum="MathConstant">
  37. Square root of two: [code]1.414214[/code].
  38. </constant>
  39. <constant name="MATH_CONSTANT_INF" value="6" enum="MathConstant">
  40. Infinity: [code]inf[/code].
  41. </constant>
  42. <constant name="MATH_CONSTANT_NAN" value="7" enum="MathConstant">
  43. Not a number: [code]nan[/code].
  44. </constant>
  45. <constant name="MATH_CONSTANT_MAX" value="8" enum="MathConstant">
  46. Represents the size of the [enum MathConstant] enum.
  47. </constant>
  48. </constants>
  49. </class>