#![allow(bad_style)] #![allow(clippy::float_cmp)] use hektor::*; #[test] fn Quat_conjugate() { let q = Quat::new(1.0, 2.0, 3.0, 4.0).conjugate(); assert_eq!(q, Quat::new(1.0, -2.0, -3.0, -4.0)); // let q = Quat::new(1.0, 2.0, 3.0, 4.0).conjugate().conjugate(); assert_eq!(q, Quat::new(1.0, 2.0, 3.0, 4.0)); }