Esempio n. 1
0
        static void Main(string[] args)
        {
            Vector a = new Vector(1, 2, 4);
            Vector b = new Vector(2, 2, 0);

            Console.WriteLine(a);
            Console.WriteLine(b);

            Vector c = 2.5 * a + b;
            Console.WriteLine(c);

            Console.WriteLine(a * b);

            Console.WriteLine(b == new Vector(2, 2, 0));

            Console.ReadKey();
        }
Esempio n. 2
0
 public Vector(Vector other)
 {
     coordinates = new List<double>(other.coordinates);
 }