mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 14:22:54 +02:00
Merge pull request #131 from sparr/master
this fixes a bug with arc lengths as discussed on IRC, including two unit tests
This commit is contained in:
commit
1cc28844a5
2 files changed
+10
-3
No files matched your search
@@ -17,7 +17,11 @@ sub angle {
|
||||
sub length {
|
||||
my $self = shift;
|
||||
|
||||
return $self->radius * $self->angle;
|
||||
if($self->orientation eq 'ccw') {
|
||||
return $self->radius * $self->angle;
|
||||
} else {
|
||||
return $self->radius * (2*PI() - $self->angle);
|
||||
}
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in new issue
Block a user