mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
More integration of Slic3r::Point::XS
This commit is contained in:
@@ -386,7 +386,10 @@ sub rotate_points {
|
||||
|
||||
sub move_points {
|
||||
my ($shift, @points) = @_;
|
||||
return map Slic3r::Point->new($shift->[X] + $_->[X], $shift->[Y] + $_->[Y]), @points;
|
||||
return map {
|
||||
my @p = @$_;
|
||||
Slic3r::Point->new($shift->[X] + $p[X], $shift->[Y] + $p[Y]);
|
||||
} @points;
|
||||
}
|
||||
|
||||
sub move_points_3D {
|
||||
|
||||
Reference in New Issue
Block a user