diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-01 12:59:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-01 12:59:49 +0200 |
commit | 69de1eca01507c49141de2485e64861ca3e368ee (patch) | |
tree | 8bf5b7fbfe77b76df43d9fefc3fcc9b8c487f558 /doc/classes | |
parent | 815055a29b3b459c170d794253b14953065281f5 (diff) | |
parent | 6cc54a58647454850c5475f6759c1bbbb76d68d3 (diff) |
Merge pull request #31667 from YeldhamDev/geometry_point_circle_cleanup
Add 'is_point_in_circle()' to Geometry class, and general file cleanup
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Geometry.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/classes/Geometry.xml b/doc/classes/Geometry.xml index 3cbbe6da56..5c5be6c44f 100644 --- a/doc/classes/Geometry.xml +++ b/doc/classes/Geometry.xml @@ -216,6 +216,19 @@ Intersects [code]polyline[/code] with [code]polygon[/code] and returns an array of intersected polylines. This performs [constant OPERATION_INTERSECTION] 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_circle"> + <return type="bool"> + </return> + <argument index="0" name="point" type="Vector2"> + </argument> + <argument index="1" name="circle_position" type="Vector2"> + </argument> + <argument index="2" name="circle_radius" type="float"> + </argument> + <description> + Returns [code]true[/code] if [code]point[/code] is inside the circle or if it's located exactly [i]on[/i] the circle's boundary, otherwise returns [code]false[/code]. + </description> + </method> <method name="is_point_in_polygon"> <return type="bool"> </return> |