mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 22:14:00 -06: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 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue