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