Point.pm 473 B

12345678910111213141516171819202122232425262728
  1. package Slic3r::Point;
  2. use strict;
  3. use warnings;
  4. sub new_scale {
  5. my $class = shift;
  6. return $class->new(map Slic3r::Geometry::scale($_), @_);
  7. }
  8. package Slic3r::Pointf;
  9. use strict;
  10. use warnings;
  11. sub new_unscale {
  12. my $class = shift;
  13. return $class->new(map Slic3r::Geometry::unscale($_), @_);
  14. }
  15. package Slic3r::Pointf3;
  16. use strict;
  17. use warnings;
  18. sub new_unscale {
  19. my $class = shift;
  20. return $class->new(map Slic3r::Geometry::unscale($_), @_);
  21. }
  22. 1;