mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 13:04:03 -06:00
More incomplete work to make the plater work with XS data
This commit is contained in:
parent
8d171a297e
commit
1506907212
2 changed files with 5 additions and 2 deletions
|
@ -374,7 +374,7 @@ sub rad2deg_dir {
|
|||
|
||||
sub rotate_points {
|
||||
my ($radians, $center, @points) = @_;
|
||||
$center ||= [0,0];
|
||||
$center //= [0,0];
|
||||
return map {
|
||||
[
|
||||
$center->[X] + cos($radians) * ($_->[X] - $center->[X]) - sin($radians) * ($_->[Y] - $center->[Y]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue