Example #1
0
        public void add()
        {
            var a = new Point3(1, 3, 5);
            var v = new Vector3(2, 4, 6);

            var b = a.Add(v);

            Assert.Equal(a.X + v.X, b.X);
            Assert.Equal(a.Y + v.Y, b.Y);
            Assert.Equal(a.Z + v.Z, b.Z);
        }
Example #2
0
        public void add() {
            var a = new Point3(1, 3, 5);
            var v = new Vector3(2, 4, 6);

            var b = a.Add(v);

            Assert.Equal(a.X + v.X, b.X);
            Assert.Equal(a.Y + v.Y, b.Y);
            Assert.Equal(a.Z + v.Z, b.Z);
        }