class_curve.rst 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  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/Curve.xml.
  6. .. _class_Curve:
  7. Curve
  8. =====
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A mathematical curve.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This resource describes a mathematical curve by defining a set of points and tangents at each point. By default, it ranges between ``0`` and ``1`` on the X and Y axes, but these ranges can be changed.
  15. Please note that many resources and nodes assume they are given *unit curves*. A unit curve is a curve whose domain (the X axis) is between ``0`` and ``1``. Some examples of unit curve usage are :ref:`CPUParticles2D.angle_curve<class_CPUParticles2D_property_angle_curve>` and :ref:`Line2D.width_curve<class_Line2D_property_width_curve>`.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +---------------------------+--------------------------------------------------------------+---------+
  22. | :ref:`int<class_int>` | :ref:`bake_resolution<class_Curve_property_bake_resolution>` | ``100`` |
  23. +---------------------------+--------------------------------------------------------------+---------+
  24. | :ref:`float<class_float>` | :ref:`max_domain<class_Curve_property_max_domain>` | ``1.0`` |
  25. +---------------------------+--------------------------------------------------------------+---------+
  26. | :ref:`float<class_float>` | :ref:`max_value<class_Curve_property_max_value>` | ``1.0`` |
  27. +---------------------------+--------------------------------------------------------------+---------+
  28. | :ref:`float<class_float>` | :ref:`min_domain<class_Curve_property_min_domain>` | ``0.0`` |
  29. +---------------------------+--------------------------------------------------------------+---------+
  30. | :ref:`float<class_float>` | :ref:`min_value<class_Curve_property_min_value>` | ``0.0`` |
  31. +---------------------------+--------------------------------------------------------------+---------+
  32. | :ref:`int<class_int>` | :ref:`point_count<class_Curve_property_point_count>` | ``0`` |
  33. +---------------------------+--------------------------------------------------------------+---------+
  34. .. rst-class:: classref-reftable-group
  35. Methods
  36. -------
  37. .. table::
  38. :widths: auto
  39. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`int<class_int>` | :ref:`add_point<class_Curve_method_add_point>`\ (\ position\: :ref:`Vector2<class_Vector2>`, left_tangent\: :ref:`float<class_float>` = 0, right_tangent\: :ref:`float<class_float>` = 0, left_mode\: :ref:`TangentMode<enum_Curve_TangentMode>` = 0, right_mode\: :ref:`TangentMode<enum_Curve_TangentMode>` = 0\ ) |
  41. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | |void| | :ref:`bake<class_Curve_method_bake>`\ (\ ) |
  43. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | |void| | :ref:`clean_dupes<class_Curve_method_clean_dupes>`\ (\ ) |
  45. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | |void| | :ref:`clear_points<class_Curve_method_clear_points>`\ (\ ) |
  47. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`float<class_float>` | :ref:`get_domain_range<class_Curve_method_get_domain_range>`\ (\ ) |const| |
  49. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`TangentMode<enum_Curve_TangentMode>` | :ref:`get_point_left_mode<class_Curve_method_get_point_left_mode>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  51. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`float<class_float>` | :ref:`get_point_left_tangent<class_Curve_method_get_point_left_tangent>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  53. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`Vector2<class_Vector2>` | :ref:`get_point_position<class_Curve_method_get_point_position>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  55. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`TangentMode<enum_Curve_TangentMode>` | :ref:`get_point_right_mode<class_Curve_method_get_point_right_mode>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  57. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | :ref:`float<class_float>` | :ref:`get_point_right_tangent<class_Curve_method_get_point_right_tangent>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  59. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`float<class_float>` | :ref:`get_value_range<class_Curve_method_get_value_range>`\ (\ ) |const| |
  61. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | |void| | :ref:`remove_point<class_Curve_method_remove_point>`\ (\ index\: :ref:`int<class_int>`\ ) |
  63. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | :ref:`float<class_float>` | :ref:`sample<class_Curve_method_sample>`\ (\ offset\: :ref:`float<class_float>`\ ) |const| |
  65. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | :ref:`float<class_float>` | :ref:`sample_baked<class_Curve_method_sample_baked>`\ (\ offset\: :ref:`float<class_float>`\ ) |const| |
  67. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | |void| | :ref:`set_point_left_mode<class_Curve_method_set_point_left_mode>`\ (\ index\: :ref:`int<class_int>`, mode\: :ref:`TangentMode<enum_Curve_TangentMode>`\ ) |
  69. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | |void| | :ref:`set_point_left_tangent<class_Curve_method_set_point_left_tangent>`\ (\ index\: :ref:`int<class_int>`, tangent\: :ref:`float<class_float>`\ ) |
  71. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | :ref:`int<class_int>` | :ref:`set_point_offset<class_Curve_method_set_point_offset>`\ (\ index\: :ref:`int<class_int>`, offset\: :ref:`float<class_float>`\ ) |
  73. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | |void| | :ref:`set_point_right_mode<class_Curve_method_set_point_right_mode>`\ (\ index\: :ref:`int<class_int>`, mode\: :ref:`TangentMode<enum_Curve_TangentMode>`\ ) |
  75. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | |void| | :ref:`set_point_right_tangent<class_Curve_method_set_point_right_tangent>`\ (\ index\: :ref:`int<class_int>`, tangent\: :ref:`float<class_float>`\ ) |
  77. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | |void| | :ref:`set_point_value<class_Curve_method_set_point_value>`\ (\ index\: :ref:`int<class_int>`, y\: :ref:`float<class_float>`\ ) |
  79. +--------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. .. rst-class:: classref-section-separator
  81. ----
  82. .. rst-class:: classref-descriptions-group
  83. Signals
  84. -------
  85. .. _class_Curve_signal_domain_changed:
  86. .. rst-class:: classref-signal
  87. **domain_changed**\ (\ ) :ref:`🔗<class_Curve_signal_domain_changed>`
  88. Emitted when :ref:`max_domain<class_Curve_property_max_domain>` or :ref:`min_domain<class_Curve_property_min_domain>` is changed.
  89. .. rst-class:: classref-item-separator
  90. ----
  91. .. _class_Curve_signal_range_changed:
  92. .. rst-class:: classref-signal
  93. **range_changed**\ (\ ) :ref:`🔗<class_Curve_signal_range_changed>`
  94. Emitted when :ref:`max_value<class_Curve_property_max_value>` or :ref:`min_value<class_Curve_property_min_value>` is changed.
  95. .. rst-class:: classref-section-separator
  96. ----
  97. .. rst-class:: classref-descriptions-group
  98. Enumerations
  99. ------------
  100. .. _enum_Curve_TangentMode:
  101. .. rst-class:: classref-enumeration
  102. enum **TangentMode**: :ref:`🔗<enum_Curve_TangentMode>`
  103. .. _class_Curve_constant_TANGENT_FREE:
  104. .. rst-class:: classref-enumeration-constant
  105. :ref:`TangentMode<enum_Curve_TangentMode>` **TANGENT_FREE** = ``0``
  106. The tangent on this side of the point is user-defined.
  107. .. _class_Curve_constant_TANGENT_LINEAR:
  108. .. rst-class:: classref-enumeration-constant
  109. :ref:`TangentMode<enum_Curve_TangentMode>` **TANGENT_LINEAR** = ``1``
  110. The curve calculates the tangent on this side of the point as the slope halfway towards the adjacent point.
  111. .. _class_Curve_constant_TANGENT_MODE_COUNT:
  112. .. rst-class:: classref-enumeration-constant
  113. :ref:`TangentMode<enum_Curve_TangentMode>` **TANGENT_MODE_COUNT** = ``2``
  114. The total number of available tangent modes.
  115. .. rst-class:: classref-section-separator
  116. ----
  117. .. rst-class:: classref-descriptions-group
  118. Property Descriptions
  119. ---------------------
  120. .. _class_Curve_property_bake_resolution:
  121. .. rst-class:: classref-property
  122. :ref:`int<class_int>` **bake_resolution** = ``100`` :ref:`🔗<class_Curve_property_bake_resolution>`
  123. .. rst-class:: classref-property-setget
  124. - |void| **set_bake_resolution**\ (\ value\: :ref:`int<class_int>`\ )
  125. - :ref:`int<class_int>` **get_bake_resolution**\ (\ )
  126. The number of points to include in the baked (i.e. cached) curve data.
  127. .. rst-class:: classref-item-separator
  128. ----
  129. .. _class_Curve_property_max_domain:
  130. .. rst-class:: classref-property
  131. :ref:`float<class_float>` **max_domain** = ``1.0`` :ref:`🔗<class_Curve_property_max_domain>`
  132. .. rst-class:: classref-property-setget
  133. - |void| **set_max_domain**\ (\ value\: :ref:`float<class_float>`\ )
  134. - :ref:`float<class_float>` **get_max_domain**\ (\ )
  135. The maximum domain (x-coordinate) that points can have.
  136. .. rst-class:: classref-item-separator
  137. ----
  138. .. _class_Curve_property_max_value:
  139. .. rst-class:: classref-property
  140. :ref:`float<class_float>` **max_value** = ``1.0`` :ref:`🔗<class_Curve_property_max_value>`
  141. .. rst-class:: classref-property-setget
  142. - |void| **set_max_value**\ (\ value\: :ref:`float<class_float>`\ )
  143. - :ref:`float<class_float>` **get_max_value**\ (\ )
  144. The maximum value (y-coordinate) that points can have. Tangents can cause higher values between points.
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _class_Curve_property_min_domain:
  148. .. rst-class:: classref-property
  149. :ref:`float<class_float>` **min_domain** = ``0.0`` :ref:`🔗<class_Curve_property_min_domain>`
  150. .. rst-class:: classref-property-setget
  151. - |void| **set_min_domain**\ (\ value\: :ref:`float<class_float>`\ )
  152. - :ref:`float<class_float>` **get_min_domain**\ (\ )
  153. The minimum domain (x-coordinate) that points can have.
  154. .. rst-class:: classref-item-separator
  155. ----
  156. .. _class_Curve_property_min_value:
  157. .. rst-class:: classref-property
  158. :ref:`float<class_float>` **min_value** = ``0.0`` :ref:`🔗<class_Curve_property_min_value>`
  159. .. rst-class:: classref-property-setget
  160. - |void| **set_min_value**\ (\ value\: :ref:`float<class_float>`\ )
  161. - :ref:`float<class_float>` **get_min_value**\ (\ )
  162. The minimum value (y-coordinate) that points can have. Tangents can cause lower values between points.
  163. .. rst-class:: classref-item-separator
  164. ----
  165. .. _class_Curve_property_point_count:
  166. .. rst-class:: classref-property
  167. :ref:`int<class_int>` **point_count** = ``0`` :ref:`🔗<class_Curve_property_point_count>`
  168. .. rst-class:: classref-property-setget
  169. - |void| **set_point_count**\ (\ value\: :ref:`int<class_int>`\ )
  170. - :ref:`int<class_int>` **get_point_count**\ (\ )
  171. The number of points describing the curve.
  172. .. rst-class:: classref-section-separator
  173. ----
  174. .. rst-class:: classref-descriptions-group
  175. Method Descriptions
  176. -------------------
  177. .. _class_Curve_method_add_point:
  178. .. rst-class:: classref-method
  179. :ref:`int<class_int>` **add_point**\ (\ position\: :ref:`Vector2<class_Vector2>`, left_tangent\: :ref:`float<class_float>` = 0, right_tangent\: :ref:`float<class_float>` = 0, left_mode\: :ref:`TangentMode<enum_Curve_TangentMode>` = 0, right_mode\: :ref:`TangentMode<enum_Curve_TangentMode>` = 0\ ) :ref:`🔗<class_Curve_method_add_point>`
  180. Adds a point to the curve. For each side, if the ``*_mode`` is :ref:`TANGENT_LINEAR<class_Curve_constant_TANGENT_LINEAR>`, the ``*_tangent`` angle (in degrees) uses the slope of the curve halfway to the adjacent point. Allows custom assignments to the ``*_tangent`` angle if ``*_mode`` is set to :ref:`TANGENT_FREE<class_Curve_constant_TANGENT_FREE>`.
  181. .. rst-class:: classref-item-separator
  182. ----
  183. .. _class_Curve_method_bake:
  184. .. rst-class:: classref-method
  185. |void| **bake**\ (\ ) :ref:`🔗<class_Curve_method_bake>`
  186. Recomputes the baked cache of points for the curve.
  187. .. rst-class:: classref-item-separator
  188. ----
  189. .. _class_Curve_method_clean_dupes:
  190. .. rst-class:: classref-method
  191. |void| **clean_dupes**\ (\ ) :ref:`🔗<class_Curve_method_clean_dupes>`
  192. Removes duplicate points, i.e. points that are less than 0.00001 units (engine epsilon value) away from their neighbor on the curve.
  193. .. rst-class:: classref-item-separator
  194. ----
  195. .. _class_Curve_method_clear_points:
  196. .. rst-class:: classref-method
  197. |void| **clear_points**\ (\ ) :ref:`🔗<class_Curve_method_clear_points>`
  198. Removes all points from the curve.
  199. .. rst-class:: classref-item-separator
  200. ----
  201. .. _class_Curve_method_get_domain_range:
  202. .. rst-class:: classref-method
  203. :ref:`float<class_float>` **get_domain_range**\ (\ ) |const| :ref:`🔗<class_Curve_method_get_domain_range>`
  204. Returns the difference between :ref:`min_domain<class_Curve_property_min_domain>` and :ref:`max_domain<class_Curve_property_max_domain>`.
  205. .. rst-class:: classref-item-separator
  206. ----
  207. .. _class_Curve_method_get_point_left_mode:
  208. .. rst-class:: classref-method
  209. :ref:`TangentMode<enum_Curve_TangentMode>` **get_point_left_mode**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Curve_method_get_point_left_mode>`
  210. Returns the left :ref:`TangentMode<enum_Curve_TangentMode>` for the point at ``index``.
  211. .. rst-class:: classref-item-separator
  212. ----
  213. .. _class_Curve_method_get_point_left_tangent:
  214. .. rst-class:: classref-method
  215. :ref:`float<class_float>` **get_point_left_tangent**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Curve_method_get_point_left_tangent>`
  216. Returns the left tangent angle (in degrees) for the point at ``index``.
  217. .. rst-class:: classref-item-separator
  218. ----
  219. .. _class_Curve_method_get_point_position:
  220. .. rst-class:: classref-method
  221. :ref:`Vector2<class_Vector2>` **get_point_position**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Curve_method_get_point_position>`
  222. Returns the curve coordinates for the point at ``index``.
  223. .. rst-class:: classref-item-separator
  224. ----
  225. .. _class_Curve_method_get_point_right_mode:
  226. .. rst-class:: classref-method
  227. :ref:`TangentMode<enum_Curve_TangentMode>` **get_point_right_mode**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Curve_method_get_point_right_mode>`
  228. Returns the right :ref:`TangentMode<enum_Curve_TangentMode>` for the point at ``index``.
  229. .. rst-class:: classref-item-separator
  230. ----
  231. .. _class_Curve_method_get_point_right_tangent:
  232. .. rst-class:: classref-method
  233. :ref:`float<class_float>` **get_point_right_tangent**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Curve_method_get_point_right_tangent>`
  234. Returns the right tangent angle (in degrees) for the point at ``index``.
  235. .. rst-class:: classref-item-separator
  236. ----
  237. .. _class_Curve_method_get_value_range:
  238. .. rst-class:: classref-method
  239. :ref:`float<class_float>` **get_value_range**\ (\ ) |const| :ref:`🔗<class_Curve_method_get_value_range>`
  240. Returns the difference between :ref:`min_value<class_Curve_property_min_value>` and :ref:`max_value<class_Curve_property_max_value>`.
  241. .. rst-class:: classref-item-separator
  242. ----
  243. .. _class_Curve_method_remove_point:
  244. .. rst-class:: classref-method
  245. |void| **remove_point**\ (\ index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Curve_method_remove_point>`
  246. Removes the point at ``index`` from the curve.
  247. .. rst-class:: classref-item-separator
  248. ----
  249. .. _class_Curve_method_sample:
  250. .. rst-class:: classref-method
  251. :ref:`float<class_float>` **sample**\ (\ offset\: :ref:`float<class_float>`\ ) |const| :ref:`🔗<class_Curve_method_sample>`
  252. Returns the Y value for the point that would exist at the X position ``offset`` along the curve.
  253. .. rst-class:: classref-item-separator
  254. ----
  255. .. _class_Curve_method_sample_baked:
  256. .. rst-class:: classref-method
  257. :ref:`float<class_float>` **sample_baked**\ (\ offset\: :ref:`float<class_float>`\ ) |const| :ref:`🔗<class_Curve_method_sample_baked>`
  258. Returns the Y value for the point that would exist at the X position ``offset`` along the curve using the baked cache. Bakes the curve's points if not already baked.
  259. .. rst-class:: classref-item-separator
  260. ----
  261. .. _class_Curve_method_set_point_left_mode:
  262. .. rst-class:: classref-method
  263. |void| **set_point_left_mode**\ (\ index\: :ref:`int<class_int>`, mode\: :ref:`TangentMode<enum_Curve_TangentMode>`\ ) :ref:`🔗<class_Curve_method_set_point_left_mode>`
  264. Sets the left :ref:`TangentMode<enum_Curve_TangentMode>` for the point at ``index`` to ``mode``.
  265. .. rst-class:: classref-item-separator
  266. ----
  267. .. _class_Curve_method_set_point_left_tangent:
  268. .. rst-class:: classref-method
  269. |void| **set_point_left_tangent**\ (\ index\: :ref:`int<class_int>`, tangent\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Curve_method_set_point_left_tangent>`
  270. Sets the left tangent angle for the point at ``index`` to ``tangent``.
  271. .. rst-class:: classref-item-separator
  272. ----
  273. .. _class_Curve_method_set_point_offset:
  274. .. rst-class:: classref-method
  275. :ref:`int<class_int>` **set_point_offset**\ (\ index\: :ref:`int<class_int>`, offset\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Curve_method_set_point_offset>`
  276. Sets the offset from ``0.5``.
  277. .. rst-class:: classref-item-separator
  278. ----
  279. .. _class_Curve_method_set_point_right_mode:
  280. .. rst-class:: classref-method
  281. |void| **set_point_right_mode**\ (\ index\: :ref:`int<class_int>`, mode\: :ref:`TangentMode<enum_Curve_TangentMode>`\ ) :ref:`🔗<class_Curve_method_set_point_right_mode>`
  282. Sets the right :ref:`TangentMode<enum_Curve_TangentMode>` for the point at ``index`` to ``mode``.
  283. .. rst-class:: classref-item-separator
  284. ----
  285. .. _class_Curve_method_set_point_right_tangent:
  286. .. rst-class:: classref-method
  287. |void| **set_point_right_tangent**\ (\ index\: :ref:`int<class_int>`, tangent\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Curve_method_set_point_right_tangent>`
  288. Sets the right tangent angle for the point at ``index`` to ``tangent``.
  289. .. rst-class:: classref-item-separator
  290. ----
  291. .. _class_Curve_method_set_point_value:
  292. .. rst-class:: classref-method
  293. |void| **set_point_value**\ (\ index\: :ref:`int<class_int>`, y\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Curve_method_set_point_value>`
  294. Assigns the vertical position ``y`` to the point at ``index``.
  295. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  296. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  297. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  298. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  299. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  300. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  301. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  302. .. |void| replace:: :abbr:`void (No return value.)`