1 2 3 4 5 6 7 8 9 10 11
use MFEKmath::Vector; #[test] fn conv() { let mut v = Vector::from_components(0.0, 100.0); v[1] = 50.0; v *= 10.0; v[0] = v[0] - v[1]; assert_eq!(v.x, -500.0); assert_eq!(v.y, 500.0); }