mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Don't test Dir->Ori correctness because it will fail from floating point errors
This commit is contained in:
parent
065e260e78
commit
990198cd87
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user