From 5f9742599e1933e909bf8810696b25772e99e09a Mon Sep 17 00:00:00 2001 From: Michael Kirsch Date: Sat, 6 Jul 2019 21:12:16 +0200 Subject: [PATCH] fix trafo test imports --- xs/t/25_transformationmatrix.t | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xs/t/25_transformationmatrix.t b/xs/t/25_transformationmatrix.t index d117de0eb..fcc45390b 100644 --- a/xs/t/25_transformationmatrix.t +++ b/xs/t/25_transformationmatrix.t @@ -6,7 +6,10 @@ use warnings; use Test::More; use Slic3r::XS; -use Slic3r::Geometry qw(X Y Z deg2rad); + +use constant X => 0; +use constant Y => 1; +use constant Z => 2; my $mat1 = Slic3r::TransformationMatrix->new; @@ -146,4 +149,8 @@ sub check_point { return $equal; } +sub deg2rad { + return ($_[0] * 3.141592653589793238 / 180); +} + __END__