class_visualshadernodevectorfunc.rst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeVectorFunc.xml.
  6. .. _class_VisualShaderNodeVectorFunc:
  7. VisualShaderNodeVectorFunc
  8. ==========================
  9. **Inherits:** :ref:`VisualShaderNodeVectorBase<class_VisualShaderNodeVectorBase>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A vector function to be used within the visual shader graph.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A visual shader node able to perform different functions using vectors.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-----------------------------------------------------------+---------------------------------------------------------------------+-------+
  21. | :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` | :ref:`function<class_VisualShaderNodeVectorFunc_property_function>` | ``0`` |
  22. +-----------------------------------------------------------+---------------------------------------------------------------------+-------+
  23. .. rst-class:: classref-section-separator
  24. ----
  25. .. rst-class:: classref-descriptions-group
  26. Enumerations
  27. ------------
  28. .. _enum_VisualShaderNodeVectorFunc_Function:
  29. .. rst-class:: classref-enumeration
  30. enum **Function**: :ref:`🔗<enum_VisualShaderNodeVectorFunc_Function>`
  31. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NORMALIZE:
  32. .. rst-class:: classref-enumeration-constant
  33. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_NORMALIZE** = ``0``
  34. Normalizes the vector so that it has a length of ``1`` but points in the same direction.
  35. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SATURATE:
  36. .. rst-class:: classref-enumeration-constant
  37. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SATURATE** = ``1``
  38. Clamps the value between ``0.0`` and ``1.0``.
  39. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NEGATE:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_NEGATE** = ``2``
  42. Returns the opposite value of the parameter.
  43. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RECIPROCAL:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_RECIPROCAL** = ``3``
  46. Returns ``1/vector``.
  47. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ABS:
  48. .. rst-class:: classref-enumeration-constant
  49. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ABS** = ``4``
  50. Returns the absolute value of the parameter.
  51. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOS:
  52. .. rst-class:: classref-enumeration-constant
  53. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ACOS** = ``5``
  54. Returns the arc-cosine of the parameter.
  55. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOSH:
  56. .. rst-class:: classref-enumeration-constant
  57. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ACOSH** = ``6``
  58. Returns the inverse hyperbolic cosine of the parameter.
  59. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASIN:
  60. .. rst-class:: classref-enumeration-constant
  61. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ASIN** = ``7``
  62. Returns the arc-sine of the parameter.
  63. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASINH:
  64. .. rst-class:: classref-enumeration-constant
  65. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ASINH** = ``8``
  66. Returns the inverse hyperbolic sine of the parameter.
  67. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATAN:
  68. .. rst-class:: classref-enumeration-constant
  69. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ATAN** = ``9``
  70. Returns the arc-tangent of the parameter.
  71. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATANH:
  72. .. rst-class:: classref-enumeration-constant
  73. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ATANH** = ``10``
  74. Returns the inverse hyperbolic tangent of the parameter.
  75. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_CEIL:
  76. .. rst-class:: classref-enumeration-constant
  77. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_CEIL** = ``11``
  78. Finds the nearest integer that is greater than or equal to the parameter.
  79. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COS:
  80. .. rst-class:: classref-enumeration-constant
  81. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_COS** = ``12``
  82. Returns the cosine of the parameter.
  83. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COSH:
  84. .. rst-class:: classref-enumeration-constant
  85. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_COSH** = ``13``
  86. Returns the hyperbolic cosine of the parameter.
  87. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_DEGREES:
  88. .. rst-class:: classref-enumeration-constant
  89. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_DEGREES** = ``14``
  90. Converts a quantity in radians to degrees.
  91. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP:
  92. .. rst-class:: classref-enumeration-constant
  93. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_EXP** = ``15``
  94. Base-e Exponential.
  95. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP2:
  96. .. rst-class:: classref-enumeration-constant
  97. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_EXP2** = ``16``
  98. Base-2 Exponential.
  99. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FLOOR:
  100. .. rst-class:: classref-enumeration-constant
  101. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_FLOOR** = ``17``
  102. Finds the nearest integer less than or equal to the parameter.
  103. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FRACT:
  104. .. rst-class:: classref-enumeration-constant
  105. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_FRACT** = ``18``
  106. Computes the fractional part of the argument.
  107. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_INVERSE_SQRT:
  108. .. rst-class:: classref-enumeration-constant
  109. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_INVERSE_SQRT** = ``19``
  110. Returns the inverse of the square root of the parameter.
  111. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG:
  112. .. rst-class:: classref-enumeration-constant
  113. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_LOG** = ``20``
  114. Natural logarithm.
  115. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG2:
  116. .. rst-class:: classref-enumeration-constant
  117. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_LOG2** = ``21``
  118. Base-2 logarithm.
  119. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RADIANS:
  120. .. rst-class:: classref-enumeration-constant
  121. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_RADIANS** = ``22``
  122. Converts a quantity in degrees to radians.
  123. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUND:
  124. .. rst-class:: classref-enumeration-constant
  125. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ROUND** = ``23``
  126. Finds the nearest integer to the parameter.
  127. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUNDEVEN:
  128. .. rst-class:: classref-enumeration-constant
  129. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ROUNDEVEN** = ``24``
  130. Finds the nearest even integer to the parameter.
  131. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIGN:
  132. .. rst-class:: classref-enumeration-constant
  133. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SIGN** = ``25``
  134. Extracts the sign of the parameter, i.e. returns ``-1`` if the parameter is negative, ``1`` if it's positive and ``0`` otherwise.
  135. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIN:
  136. .. rst-class:: classref-enumeration-constant
  137. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SIN** = ``26``
  138. Returns the sine of the parameter.
  139. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SINH:
  140. .. rst-class:: classref-enumeration-constant
  141. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SINH** = ``27``
  142. Returns the hyperbolic sine of the parameter.
  143. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SQRT:
  144. .. rst-class:: classref-enumeration-constant
  145. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SQRT** = ``28``
  146. Returns the square root of the parameter.
  147. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TAN:
  148. .. rst-class:: classref-enumeration-constant
  149. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_TAN** = ``29``
  150. Returns the tangent of the parameter.
  151. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TANH:
  152. .. rst-class:: classref-enumeration-constant
  153. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_TANH** = ``30``
  154. Returns the hyperbolic tangent of the parameter.
  155. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TRUNC:
  156. .. rst-class:: classref-enumeration-constant
  157. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_TRUNC** = ``31``
  158. Returns a value equal to the nearest integer to the parameter whose absolute value is not larger than the absolute value of the parameter.
  159. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ONEMINUS:
  160. .. rst-class:: classref-enumeration-constant
  161. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ONEMINUS** = ``32``
  162. Returns ``1.0 - vector``.
  163. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_MAX:
  164. .. rst-class:: classref-enumeration-constant
  165. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_MAX** = ``33``
  166. Represents the size of the :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` enum.
  167. .. rst-class:: classref-section-separator
  168. ----
  169. .. rst-class:: classref-descriptions-group
  170. Property Descriptions
  171. ---------------------
  172. .. _class_VisualShaderNodeVectorFunc_property_function:
  173. .. rst-class:: classref-property
  174. :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **function** = ``0`` :ref:`🔗<class_VisualShaderNodeVectorFunc_property_function>`
  175. .. rst-class:: classref-property-setget
  176. - |void| **set_function**\ (\ value\: :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>`\ )
  177. - :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **get_function**\ (\ )
  178. The function to be performed. See :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` for options.
  179. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  180. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  181. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  182. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  183. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  184. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  185. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  186. .. |void| replace:: :abbr:`void (No return value.)`