Function identity

Source
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])