Function quaternion_core::negate_vec
source · [−]Expand description
Invert the sign of a Vector3.
Example
let v: Vector3<f64> = [1.0, 2.0, 3.0];
let v_n = negate_vec(v);
assert_eq!(-v[0], v_n[0]);
assert_eq!(-v[1], v_n[1]);
assert_eq!(-v[2], v_n[2]);