pub fn identity<T>() -> Quaternion<T>where
T: Float,
Expand description
Generate identity quaternion.
let q: Quaternion<f64> = identity();
println!("{:?}", q); // <-- (1.0, [0.0, 0.0, 0.0])
pub fn identity<T>() -> Quaternion<T>where
T: Float,
Generate identity quaternion.
let q: Quaternion<f64> = identity();
println!("{:?}", q); // <-- (1.0, [0.0, 0.0, 0.0])