class_visualshadernodevectorop.rst 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/VisualShaderNodeVectorOp.xml.
  6. .. _class_VisualShaderNodeVectorOp:
  7. VisualShaderNodeVectorOp
  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 operator to be used within the visual shader graph.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A visual shader node for use of vector operators. Operates on vector ``a`` and vector ``b``.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------------------------------------+-------------------------------------------------------------------+-------+
  21. | :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` | :ref:`operator<class_VisualShaderNodeVectorOp_property_operator>` | ``0`` |
  22. +---------------------------------------------------------+-------------------------------------------------------------------+-------+
  23. .. rst-class:: classref-section-separator
  24. ----
  25. .. rst-class:: classref-descriptions-group
  26. Enumerations
  27. ------------
  28. .. _enum_VisualShaderNodeVectorOp_Operator:
  29. .. rst-class:: classref-enumeration
  30. enum **Operator**:
  31. .. _class_VisualShaderNodeVectorOp_constant_OP_ADD:
  32. .. rst-class:: classref-enumeration-constant
  33. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_ADD** = ``0``
  34. Adds two vectors.
  35. .. _class_VisualShaderNodeVectorOp_constant_OP_SUB:
  36. .. rst-class:: classref-enumeration-constant
  37. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_SUB** = ``1``
  38. Subtracts a vector from a vector.
  39. .. _class_VisualShaderNodeVectorOp_constant_OP_MUL:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_MUL** = ``2``
  42. Multiplies two vectors.
  43. .. _class_VisualShaderNodeVectorOp_constant_OP_DIV:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_DIV** = ``3``
  46. Divides vector by vector.
  47. .. _class_VisualShaderNodeVectorOp_constant_OP_MOD:
  48. .. rst-class:: classref-enumeration-constant
  49. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_MOD** = ``4``
  50. Returns the remainder of the two vectors.
  51. .. _class_VisualShaderNodeVectorOp_constant_OP_POW:
  52. .. rst-class:: classref-enumeration-constant
  53. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_POW** = ``5``
  54. Returns the value of the first parameter raised to the power of the second, for each component of the vectors.
  55. .. _class_VisualShaderNodeVectorOp_constant_OP_MAX:
  56. .. rst-class:: classref-enumeration-constant
  57. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_MAX** = ``6``
  58. Returns the greater of two values, for each component of the vectors.
  59. .. _class_VisualShaderNodeVectorOp_constant_OP_MIN:
  60. .. rst-class:: classref-enumeration-constant
  61. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_MIN** = ``7``
  62. Returns the lesser of two values, for each component of the vectors.
  63. .. _class_VisualShaderNodeVectorOp_constant_OP_CROSS:
  64. .. rst-class:: classref-enumeration-constant
  65. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_CROSS** = ``8``
  66. Calculates the cross product of two vectors.
  67. .. _class_VisualShaderNodeVectorOp_constant_OP_ATAN2:
  68. .. rst-class:: classref-enumeration-constant
  69. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_ATAN2** = ``9``
  70. Returns the arc-tangent of the parameters.
  71. .. _class_VisualShaderNodeVectorOp_constant_OP_REFLECT:
  72. .. rst-class:: classref-enumeration-constant
  73. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_REFLECT** = ``10``
  74. Returns the vector that points in the direction of reflection. ``a`` is incident vector and ``b`` is the normal vector.
  75. .. _class_VisualShaderNodeVectorOp_constant_OP_STEP:
  76. .. rst-class:: classref-enumeration-constant
  77. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_STEP** = ``11``
  78. Vector step operator. Returns ``0.0`` if ``a`` is smaller than ``b`` and ``1.0`` otherwise.
  79. .. _class_VisualShaderNodeVectorOp_constant_OP_ENUM_SIZE:
  80. .. rst-class:: classref-enumeration-constant
  81. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **OP_ENUM_SIZE** = ``12``
  82. Represents the size of the :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` enum.
  83. .. rst-class:: classref-section-separator
  84. ----
  85. .. rst-class:: classref-descriptions-group
  86. Property Descriptions
  87. ---------------------
  88. .. _class_VisualShaderNodeVectorOp_property_operator:
  89. .. rst-class:: classref-property
  90. :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **operator** = ``0``
  91. .. rst-class:: classref-property-setget
  92. - void **set_operator** **(** :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` value **)**
  93. - :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` **get_operator** **(** **)**
  94. The operator to be used. See :ref:`Operator<enum_VisualShaderNodeVectorOp_Operator>` for options.
  95. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  96. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  97. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  98. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  99. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  100. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  101. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`