summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-06-27 00:20:22 +0300
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-06-27 00:20:22 +0300
commit6f2233d13a1524ea184c30af066fd65278dcc610 (patch)
tree5bbf553984661a4664e76ab351ce36c74d09eb1b /doc
parent43a69694706ee5084c154aafb4377e10a2df1ed7 (diff)
Bind is_point_in_polygon in Geometry singleton
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Geometry.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/Geometry.xml b/doc/classes/Geometry.xml
index e2ba3fb7b0..6fb4341b3c 100644
--- a/doc/classes/Geometry.xml
+++ b/doc/classes/Geometry.xml
@@ -216,6 +216,17 @@
Intersects [code]polyline[/code] with [code]polygon[/code] and returns an array of intersected polylines. This performs [code]OPERATION_INTERSECTION[/code] between the polyline and the polygon. This operation can be thought of as chopping a line with a closed shape.
</description>
</method>
+ <method name="is_point_in_polygon">
+ <return type="bool">
+ </return>
+ <argument index="0" name="point" type="Vector2">
+ </argument>
+ <argument index="1" name="polygon" type="PoolVector2Array">
+ </argument>
+ <description>
+ Returns [code]true[/code] if [code]point[/code] is inside [code]polygon[/code] or if it's located exactly [i]on[/i] polygon's boundary, otherwise returns [code]false[/code].
+ </description>
+ </method>
<method name="is_polygon_clockwise">
<return type="bool">
</return>