summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-21 13:26:08 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-21 13:26:08 +0200
commit85a46d36b5464182a71f2fe86fb29bff0e203492 (patch)
treee42cdfc2bac01eccdd0b634647424199388fa1c2 /doc/classes
parent9521849da69ae12313db2e9286b0fac89fbe1ea4 (diff)
parent623e23c6254b26cdb50434c2ee7941e2f9acb181 (diff)
Merge pull request #66096 from 4d49/decompose-polygon-in-convex
Add method bind for `Geometry2D.decompose_polygon_in_convex`
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Geometry2D.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Geometry2D.xml b/doc/classes/Geometry2D.xml
index e613ab1a55..0142018f1a 100644
--- a/doc/classes/Geometry2D.xml
+++ b/doc/classes/Geometry2D.xml
@@ -33,6 +33,13 @@
Given an array of [Vector2]s, returns the convex hull as a list of points in counterclockwise order. The last point is the same as the first one.
</description>
</method>
+ <method name="decompose_polygon_in_convex">
+ <return type="PackedVector2Array[]" />
+ <param index="0" name="polygon" type="PackedVector2Array" />
+ <description>
+ Decomposes the [param polygon] into multiple convex hulls and returns an array of [PackedVector2Array].
+ </description>
+ </method>
<method name="exclude_polygons">
<return type="PackedVector2Array[]" />
<param index="0" name="polygon_a" type="PackedVector2Array" />