mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 13:36:31 +01:00
Optimizations for better usage of XS code
This commit is contained in:
1 parent
9254ff9704
commit
5d6fd7f4d9
22 files changed
+68
-42
No files matched your search
@@ -37,14 +37,6 @@ sub point_on_left {
|
||||
return Slic3r::Geometry::point_is_on_left_of_segment($point, $self);
|
||||
}
|
||||
|
||||
sub midpoint {
|
||||
my $self = shift;
|
||||
return Slic3r::Point->new(
|
||||
($self->[A][X] + $self->[B][X]) / 2,
|
||||
($self->[A][Y] + $self->[B][Y]) / 2,
|
||||
);
|
||||
}
|
||||
|
||||
sub grow {
|
||||
my $self = shift;
|
||||
return Slic3r::Polyline->new(@$self[0,1,0])->grow(@_);
|
||||
|
||||
Reference in new issue
Block a user