summaryrefslogtreecommitdiffstats
path: root/core/math/geometry.h
diff options
context:
space:
mode:
authorBernhard Liebl <Bernhard.Liebl@gmx.org>2017-12-27 09:28:02 +0100
committerBernhard Liebl <Bernhard.Liebl@gmx.org>2017-12-27 20:24:58 +0100
commit8505871a87b59b27acc0912a6dd815231c3b78b1 (patch)
tree31a4fdc7afe2cd3960380fa7695d508f54c043a2 /core/math/geometry.h
parent32d8b99bc31e3762ae0dc017a05567da2802a313 (diff)
downloadredot-engine-8505871a87b59b27acc0912a6dd815231c3b78b1.tar.gz
More exact picking for canvas editor
Diffstat (limited to 'core/math/geometry.h')
-rw-r--r--core/math/geometry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/math/geometry.h b/core/math/geometry.h
index cd069bd7a3..6a29a53f8f 100644
--- a/core/math/geometry.h
+++ b/core/math/geometry.h
@@ -512,6 +512,9 @@ public:
return true;
}
+
+ static bool is_point_in_polygon(const Vector2 &p_point, const Vector<Vector2> &p_polygon);
+
static Vector2 get_closest_point_to_segment_uncapped_2d(const Vector2 &p_point, const Vector2 *p_segment) {
Vector2 p = p_point - p_segment[0];