Merge pull request #15093 from poke1024/canvas-editor-select

More exact picking for canvas editor
This commit is contained in:
Rémi Verschelde
2018-01-03 11:15:28 +01:00
committed by GitHub
31 changed files with 345 additions and 46 deletions

View File

@ -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];