PrusaSlicer-NonPlainar/lib/Slic3r/Point.pm
2013-07-16 17:13:01 +02:00

17 lines
290 B
Perl

package Slic3r::Point;
use strict;
use warnings;
sub new_scale {
my $class = shift;
return $class->new(map Slic3r::Geometry::scale($_), @_);
}
sub distance_to {
my $self = shift;
my ($point) = @_;
return Slic3r::Geometry::distance_between_points($self, $point);
}
1;