Beispiel #1
0
        public void Point3_Constructors()
        {
            var point1 = new Point3();
            Assert.AreEqual(0.0, point1.X);
            Assert.AreEqual(0.0, point1.Y);
            Assert.AreEqual(0.0, point1.Z);

            var point2 = new Point3(1.1, 1.2, 1.3);
            Assert.AreEqual(1.1, point2.X);
            Assert.AreEqual(1.2, point2.Y);
            Assert.AreEqual(1.3, point2.Z);

            var point3 = new Point3(new Point3(1.1, 1.2, 1.3));
            Assert.AreEqual(1.1, point3.X);
            Assert.AreEqual(1.2, point3.Y);
            Assert.AreEqual(1.3, point3.Z);

            var point4 = new Point3(new[] { 1.1, 1.2, 1.3 });
            Assert.AreEqual(1.1, point4.X);
            Assert.AreEqual(1.2, point4.Y);
            Assert.AreEqual(1.3, point4.Z);

        }
Beispiel #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="point"></param>
 public Point3(Point3 point)
     : base(point)
 {
 }