mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Optimization: use Boost.Geometry for point in polygon
This commit is contained in:
1 parent
f7be746599
commit
b414c50b68
2 files changed
+5
-7
No files matched your search
@@ -65,7 +65,7 @@ sub point_on_segment {
|
||||
sub encloses_point {
|
||||
my $self = shift;
|
||||
my ($point) = @_;
|
||||
return point_in_polygon($point, $self);
|
||||
return Boost::Geometry::Utils::point_covered_by_polygon($point, [$self]);
|
||||
}
|
||||
|
||||
sub area {
|
||||
|
||||
Reference in new issue
Block a user