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
|
|
|
|
2013-04-27 17:02:13 +04:00
|
|
|
# a line is a two-points line
|
|
|
|
use parent 'Slic3r::Polyline';
|
|
|
|
|
2011-11-12 01:01:27 +04:00
|
|
|
use Slic3r::Geometry qw(A B X Y);
|
2011-10-20 20:11:59 +04:00
|
|
|
|
|
|
|
sub intersection {
|
|
|
|
my $self = shift;
|
|
|
|
my ($line, $require_crossing) = @_;
|
|
|
|
return Slic3r::Geometry::line_intersection($self, $line, $require_crossing);
|
|
|
|
}
|
|
|
|
|
2013-08-08 04:10:34 +04:00
|
|
|
sub grow {
|
|
|
|
my $self = shift;
|
2013-11-20 14:35:58 +04:00
|
|
|
return Slic3r::Polyline->new(@$self)->grow(@_);
|
2013-08-08 04:10:34 +04:00
|
|
|
}
|
|
|
|
|
2011-09-01 23:06:28 +04:00
|
|
|
1;
|