Don't test Dir->Ori correctness because it will fail from floating point errors

This commit is contained in:
Ludvig Böklin 2021-02-09 15:44:12 +01:00
parent 065e260e78
commit 990198cd87

View File

@ -209,11 +209,6 @@ impl From<Dir> for Ori {
let from = Dir::default();
let q = Quaternion::<f32>::rotation_from_to_3d(*from, *dir).normalized();
#[cfg(debug_assertions)]
{
approx::assert_relative_eq!((q * from).dot(*dir), 1.0);
}
Self(q).uprighted()
}
}