mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-19 13:31:09 +02:00
Export Slic3r::Test::_eq()
This commit is contained in:
1 parent
494a1a84cf
commit
701c98c5a7
2 files changed
+11
-7
No files matched your search
+5
-1
@@ -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