From 9799d3c6a8f0c242668203a1c70d7b6cfed3e855 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Tue, 15 Dec 2020 00:46:54 +0100 Subject: Refactor to make interaction between tools easier --- src/math/polygon/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/math/polygon/mod.rs') diff --git a/src/math/polygon/mod.rs b/src/math/polygon/mod.rs index c9dad91..98b1570 100644 --- a/src/math/polygon/mod.rs +++ b/src/math/polygon/mod.rs @@ -409,6 +409,10 @@ impl< true } + + fn is_inside_rect(&self, rect: &Rect) -> bool { + rect.contains_polygon(&self) + } } /* Helper function to calculate the combined angle of a set of points when connecting them one -- cgit v1.2.3-70-g09d2