public void Mul() { var vector = new Vector2(1, 2); vector.Mul(2); Assert.AreEqual(new Vector2(2, 4), vector); }
public static Vector2 operator *(Vector2 vector, double factor) { var v = new Vector2(vector); v.Mul(factor); return(v); }
public static Vector2 operator *(Vector2 vector, double factor) { var v = new Vector2(vector); v.Mul(factor); return v; }