mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
Export Slic3r::Test::_eq()
This commit is contained in:
parent
494a1a84cf
commit
701c98c5a7
2 changed files with 11 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue