Exemple #1
0
        public void Point3DDistToRectYZ()
        {
            double    expected = 5;
            Point3D   p1       = new Point3D(0, -4, -5);
            RectPrism rect     = new RectPrism(-1, -1, -1, 1, 1, 1);

            Assert.AreEqual(expected, p1.DistTo(rect));
        }
Exemple #2
0
        public void Point3DDistToRectXYZ()
        {
            double    expected = 7;
            Point3D   p1       = new Point3D(3, 4, 7);
            RectPrism rect     = new RectPrism(-1, -1, -1, 1, 1, 1);

            Assert.AreEqual(expected, p1.DistTo(rect));
        }
Exemple #3
0
        public void Point3DDistToRectX()
        {
            double    expected = 1;
            Point3D   p1       = new Point3D(-2, 0, 0);
            RectPrism rect     = new RectPrism(-1, -1, -1, 1, 1, 1);

            Assert.AreEqual(expected, p1.DistTo(rect));
        }
 public void RectPrismPointConstructor()
 {
     RectPrism rect = new RectPrism(Point3D.Min, Point3D.Max);
     //Assert.AreEqual(double.ne)
 }