VisualScriptMathConstant.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptMathConstant" inherits="VisualScriptNode" category="Core" version="3.2">
  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. <demos>
  16. </demos>
  17. <methods>
  18. </methods>
  19. <members>
  20. <member name="constant" type="int" setter="set_math_constant" getter="get_math_constant" enum="VisualScriptMathConstant.MathConstant">
  21. The math constant.
  22. </member>
  23. </members>
  24. <constants>
  25. <constant name="MATH_CONSTANT_ONE" value="0" enum="MathConstant">
  26. Unity: [code]1[/code]
  27. </constant>
  28. <constant name="MATH_CONSTANT_PI" value="1" enum="MathConstant">
  29. Pi: [code]3.141593[/code]
  30. </constant>
  31. <constant name="MATH_CONSTANT_HALF_PI" value="2" enum="MathConstant">
  32. Pi divided by two: [code]1.570796[/code]
  33. </constant>
  34. <constant name="MATH_CONSTANT_TAU" value="3" enum="MathConstant">
  35. Tau: [code]6.283185[/code]
  36. </constant>
  37. <constant name="MATH_CONSTANT_E" value="4" enum="MathConstant">
  38. Mathematical constant [code]e[/code], the natural log base: [code]2.718282[/code]
  39. </constant>
  40. <constant name="MATH_CONSTANT_SQRT2" value="5" enum="MathConstant">
  41. Square root of two: [code]1.414214[/code]
  42. </constant>
  43. <constant name="MATH_CONSTANT_INF" value="6" enum="MathConstant">
  44. Infinity: [code]inf[/code]
  45. </constant>
  46. <constant name="MATH_CONSTANT_NAN" value="7" enum="MathConstant">
  47. Not a number: [code]nan[/code]
  48. </constant>
  49. <constant name="MATH_CONSTANT_MAX" value="8" enum="MathConstant">
  50. </constant>
  51. </constants>
  52. </class>