Пример #1
0
        public void Mul()
        {
            var vector = new Vector2(1, 2);

            vector.Mul(2);
            Assert.AreEqual(new Vector2(2, 4), vector);
        }
Пример #2
0
        public static Vector2 operator *(Vector2 vector, double factor)
        {
            var v = new Vector2(vector);

            v.Mul(factor);
            return(v);
        }
Пример #3
0
 public void Mul()
 {
     var vector = new Vector2(1, 2);
       vector.Mul(2);
       Assert.AreEqual(new Vector2(2, 4), vector);
 }
Пример #4
0
 public static Vector2 operator *(Vector2 vector, double factor)
 {
     var v = new Vector2(vector);
       v.Mul(factor);
       return v;
 }