~ubuntu-branches/ubuntu/utopic/slic3r/utopic

« back to all changes in this revision

Viewing changes to lib/Slic3r/Line.pm

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-06-17 01:27:26 UTC
  • Revision ID: package-import@ubuntu.com-20140617012726-2wrs4zdo251nr4vg
Tags: upstream-1.1.4+dfsg
ImportĀ upstreamĀ versionĀ 1.1.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package Slic3r::Line;
 
2
use strict;
 
3
use warnings;
 
4
 
 
5
# a line is a two-points line
 
6
use parent 'Slic3r::Polyline';
 
7
 
 
8
use Slic3r::Geometry qw(A B X Y);
 
9
 
 
10
sub intersection {
 
11
    my $self = shift;
 
12
    my ($line, $require_crossing) = @_;
 
13
    return Slic3r::Geometry::line_intersection($self, $line, $require_crossing);
 
14
}
 
15
 
 
16
sub grow {
 
17
    my $self = shift;
 
18
    return Slic3r::Polyline->new(@$self)->grow(@_);
 
19
}
 
20
 
 
21
1;