From 1d7ade770d805dae4b71fbc528a60f0e4ed18369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludvig=20B=C3=B6klin?= Date: Tue, 9 Feb 2021 15:44:12 +0100 Subject: [PATCH] Don't test Dir->Ori correctness because it will fail from floating point errors --- common/src/comp/ori.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/src/comp/ori.rs b/common/src/comp/ori.rs index 3dfb49c5e8..86e02448e1 100644 --- a/common/src/comp/ori.rs +++ b/common/src/comp/ori.rs @@ -209,11 +209,6 @@ impl From for Ori { let from = Dir::default(); let q = Quaternion::::rotation_from_to_3d(*from, *dir).normalized(); - #[cfg(debug_assertions)] - { - approx::assert_relative_eq!((q * from).dot(*dir), 1.0); - } - Self(q).uprighted() } }