2011-09-01 21:06:28 +02:00
|
|
|
package Slic3r::Line;
|
2011-10-12 16:27:40 +02:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
2011-09-01 21:06:28 +02:00
|
|
|
|
2013-04-27 15:02:13 +02:00
|
|
|
# a line is a two-points line
|
|
|
|
use parent 'Slic3r::Polyline';
|
|
|
|
|
2011-10-20 18:11:59 +02:00
|
|
|
sub intersection {
|
|
|
|
my $self = shift;
|
|
|
|
my ($line, $require_crossing) = @_;
|
|
|
|
return Slic3r::Geometry::line_intersection($self, $line, $require_crossing);
|
|
|
|
}
|
|
|
|
|
2013-08-08 02:10:34 +02:00
|
|
|
sub grow {
|
|
|
|
my $self = shift;
|
2013-11-20 11:35:58 +01:00
|
|
|
return Slic3r::Polyline->new(@$self)->grow(@_);
|
2013-08-08 02:10:34 +02:00
|
|
|
}
|
|
|
|
|
2011-09-01 21:06:28 +02:00
|
|
|
1;
|