mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Sync classref with current source
This commit is contained in:
@@ -47,7 +47,7 @@ Methods
|
||||
-------
|
||||
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`add_point<class_Line2D_method_add_point>` **(** :ref:`Vector2<class_Vector2>` position **)** |
|
||||
| void | :ref:`add_point<class_Line2D_method_add_point>` **(** :ref:`Vector2<class_Vector2>` position, :ref:`int<class_int>` at_position=-1 **)** |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_points<class_Line2D_method_clear_points>` **(** **)** |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
@@ -256,10 +256,12 @@ Method Descriptions
|
||||
|
||||
.. _class_Line2D_method_add_point:
|
||||
|
||||
- void **add_point** **(** :ref:`Vector2<class_Vector2>` position **)**
|
||||
- void **add_point** **(** :ref:`Vector2<class_Vector2>` position, :ref:`int<class_int>` at_position=-1 **)**
|
||||
|
||||
Add a point at the ``position``. Appends the point at the end of the line.
|
||||
|
||||
If ``at_position`` is given, the point is inserted before the point number ``at_position``, moving that point (and every point after) after the inserted point. If ``at_position`` is not given, or is an illegal value (``at_position < 0`` or ``at_position >= [method get_point_count]``), the point will be appended at the end of the point list.
|
||||
|
||||
.. _class_Line2D_method_clear_points:
|
||||
|
||||
- void **clear_points** **(** **)**
|
||||
|
||||
Reference in New Issue
Block a user