PrusaSlicer-NonPlainar/lib/Slic3r/Point.pm

17 lines
290 B
Perl
Raw Normal View History

2011-09-01 19:06:28 +00:00
package Slic3r::Point;
use strict;
use warnings;
2011-09-01 19:06:28 +00:00
2013-07-16 15:13:01 +00:00
sub new_scale {
my $class = shift;
return $class->new(map Slic3r::Geometry::scale($_), @_);
}
2011-09-03 18:47:38 +00:00
sub distance_to {
my $self = shift;
my ($point) = @_;
return Slic3r::Geometry::distance_between_points($self, $point);
2011-09-03 18:47:38 +00:00
}
2011-09-01 19:06:28 +00:00
1;