mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Export Slic3r::Test::_eq()
This commit is contained in:
@@ -2,6 +2,10 @@ package Slic3r::Test;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
require Exporter;
|
||||
our @ISA = qw(Exporter);
|
||||
our @EXPORT_OK = qw(_eq);
|
||||
|
||||
use IO::Scalar;
|
||||
use Slic3r::Geometry qw(epsilon);
|
||||
|
||||
@@ -48,7 +52,7 @@ sub gcode {
|
||||
return $gcode;
|
||||
}
|
||||
|
||||
sub compare {
|
||||
sub _eq {
|
||||
my ($a, $b) = @_;
|
||||
return abs($a - $b) < epsilon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user