Cleaner usage of the PI constant

This commit is contained in:
Alessandro Ranellucci 2012-10-30 14:15:48 +01:00
parent 25d88bddff
commit 0a5016a509
2 changed files with 1 additions and 4 deletions

View file

@ -1,14 +1,13 @@
package Slic3r::Fill::Base;
use Moo;
use Slic3r::Geometry qw(PI);
has 'print' => (is => 'rw');
has 'layer' => (is => 'rw');
has 'max_print_dimension' => (is => 'rw');
has 'angle' => (is => 'rw', default => sub { $Slic3r::Config->fill_angle });
use constant PI => 4 * atan2(1, 1);
sub angles () { [0, PI/2] }
sub infill_direction {