Slic3r/lib/Slic3r/Line.pm

22 lines
402 B
Perl
Raw Normal View History

2011-09-01 23:06:28 +04:00
package Slic3r::Line;
2011-10-12 18:27:40 +04:00
use strict;
use warnings;
2011-09-01 23:06:28 +04:00
# a line is a two-points line
use parent 'Slic3r::Polyline';
use Slic3r::Geometry qw(A B X Y);
sub intersection {
my $self = shift;
my ($line, $require_crossing) = @_;
return Slic3r::Geometry::line_intersection($self, $line, $require_crossing);
}
sub grow {
my $self = shift;
2013-11-20 14:35:58 +04:00
return Slic3r::Polyline->new(@$self)->grow(@_);
}
2011-09-01 23:06:28 +04:00
1;