mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
classref: Sync with current source
[ci skip]
This commit is contained in:
@@ -50,6 +50,26 @@
|
||||
Returns an array of [Plane]s closely bounding a faceted cylinder centered at the origin with radius [code]radius[/code] and height [code]height[/code]. The parameter [code]sides[/code] defines how many planes will be generated for the round part of the cylinder. The parameter [code]axis[/code] describes the axis along which the cylinder is oriented (0 for X, 1 for Y, 2 for Z).
|
||||
</description>
|
||||
</method>
|
||||
<method name="clip_polygon">
|
||||
<return type="PoolVector3Array">
|
||||
</return>
|
||||
<argument index="0" name="points" type="PoolVector3Array">
|
||||
</argument>
|
||||
<argument index="1" name="plane" type="Plane">
|
||||
</argument>
|
||||
<description>
|
||||
Clips the polygon defined by the points in [code]points[/code] against the [code]plane[/code] and returns the points of the clipped polygon.
|
||||
</description>
|
||||
</method>
|
||||
<method name="convex_hull_2d">
|
||||
<return type="PoolVector2Array">
|
||||
</return>
|
||||
<argument index="0" name="points" type="PoolVector2Array">
|
||||
</argument>
|
||||
<description>
|
||||
Given an array of [Vector2]s, returns the convex hull as a list of points in counter-clockwise order. The last point is the same as the first one.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_closest_point_to_segment">
|
||||
<return type="Vector3">
|
||||
</return>
|
||||
@@ -280,26 +300,6 @@
|
||||
Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PoolIntArray] where each triangle consists of three consecutive point indices into [code]polygon[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). If the triangulation did not succeed, an empty [PoolIntArray] is returned.
|
||||
</description>
|
||||
</method>
|
||||
<method name="convex_hull_2d">
|
||||
<return type="PoolVector2Array">
|
||||
</return>
|
||||
<argument index="0" name="points" type="PoolVector2Array">
|
||||
</argument>
|
||||
<description>
|
||||
Given an array of [Vector2]s, returns the convex hull as a list of points in counter-clockwise order. The last point is the same as the first one.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clip_polygon">
|
||||
<return type="PoolVector3Array">
|
||||
</return>
|
||||
<argument index="0" name="points" type="PoolVector3Array">
|
||||
</argument>
|
||||
<argument index="1" name="plane" type="Plane">
|
||||
</argument>
|
||||
<description>
|
||||
Clips the polygon defined by the points in [code]points[/code] against the [code]plane[/code] and returns the points of the clipped polygon.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<constants>
|
||||
</constants>
|
||||
|
||||
Reference in New Issue
Block a user