public void Neg() { var vector = new Vector2(1, 2); vector.Neg(); Assert.AreEqual(new Vector2(-1, -2), vector); }
public static Vector2 operator -(Vector2 vector) { var v = new Vector2(vector); v.Neg(); return(v); }
public static Vector2 operator -(Vector2 vector) { var v = new Vector2(vector); v.Neg(); return v; }