From 1e5abb9b8f482ef5bc2a28794100c46b8b3b951e Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 11 Feb 2021 12:34:02 +0100 Subject: [PATCH] Use EPSILON from core --- tests/quat.rs | 2 +- tests/vec3.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/quat.rs b/tests/quat.rs index 30cb0b7d..7b9433af 100644 --- a/tests/quat.rs +++ b/tests/quat.rs @@ -320,7 +320,7 @@ macro_rules! impl_quat_tests { #[test] fn test_rotation_arc() { - let eps = 2.0 * $t::EPSILON.sqrt(); + let eps = 2.0 * core::$t::EPSILON.sqrt(); for &from in &vec3_float_test_vectors!($vec3) { let from = from.normalize(); diff --git a/tests/vec3.rs b/tests/vec3.rs index 010aa598..e0d8b0b8 100644 --- a/tests/vec3.rs +++ b/tests/vec3.rs @@ -672,7 +672,7 @@ macro_rules! impl_vec3_float_tests { #[test] fn test_any_ortho() { - let eps = 2.0 * $t::EPSILON; + let eps = 2.0 * core::$t::EPSILON; for &v in &vec3_float_test_vectors!($vec3) { let orthogonal = v.any_orthogonal_vector();