2011-09-01 21:06:28 +02:00
|
|
|
package Slic3r::Point;
|
2011-10-12 14:54:49 +02:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
2011-09-01 21:06:28 +02:00
|
|
|
|
2013-07-16 17:13:01 +02:00
|
|
|
sub new_scale {
|
|
|
|
my $class = shift;
|
|
|
|
return $class->new(map Slic3r::Geometry::scale($_), @_);
|
|
|
|
}
|
|
|
|
|
2011-09-03 20:47:38 +02:00
|
|
|
sub distance_to {
|
|
|
|
my $self = shift;
|
|
|
|
my ($point) = @_;
|
2011-10-12 14:54:49 +02:00
|
|
|
return Slic3r::Geometry::distance_between_points($self, $point);
|
2011-09-03 20:47:38 +02:00
|
|
|
}
|
|
|
|
|
2011-09-01 21:06:28 +02:00
|
|
|
1;
|