Clarify the Line2D, Curve2D/3D documentation and fix parameter names
This commit is contained in:
parent
4426049c64
commit
fff0e7b8e2
5 changed files with 22 additions and 22 deletions
|
|
@ -15,10 +15,10 @@
|
|||
<param index="0" name="position" type="Vector2" />
|
||||
<param index="1" name="in" type="Vector2" default="Vector2(0, 0)" />
|
||||
<param index="2" name="out" type="Vector2" default="Vector2(0, 0)" />
|
||||
<param index="3" name="at_position" type="int" default="-1" />
|
||||
<param index="3" name="index" type="int" default="-1" />
|
||||
<description>
|
||||
Adds a point to a curve at [param position] relative to the [Curve2D]'s position, with control points [param in] and [param out].
|
||||
If [param at_position] is given, the point is inserted before the point number [param at_position], moving that point (and every point after) after the inserted point. If [param at_position] is not given, or is an illegal value ([code]at_position <0[/code] or [code]at_position >= [method get_point_count][/code]), the point will be appended at the end of the point list.
|
||||
Adds a point with the specified [param position] relative to the curve's own position, with control points [param in] and [param out]. Appends the new point at the end of the point list.
|
||||
If [param index] is given, the new point is inserted before the existing point identified by index [param index]. Every existing point starting from [param index] is shifted further down the list of points. The index must be greater than or equal to [code]0[/code] and must not exceed the number of existing points in the line. See [member point_count].
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear_points">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue