diff options
Diffstat (limited to 'src/math/polygon/mod.rs')
| -rw-r--r-- | src/math/polygon/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<T>) -> bool { + rect.contains_polygon(&self) + } } /* Helper function to calculate the combined angle of a set of points when connecting them one |
