Esempio n. 1
0
        public virtual void testShape2()
        {
            JDFShape nl = new JDFShape(1, 2);

            Assert.AreEqual(1, nl.doubleAt(0), 0.0);
            Assert.AreEqual(2, nl.doubleAt(1), 0.0);
            Assert.AreEqual(0, nl.doubleAt(2), 0.0);
            Assert.AreEqual(1, nl.X, 0.0);
            Assert.AreEqual(2, nl.Y, 0.0);
            Assert.AreEqual(0, nl.Z, 0.0);
        }
Esempio n. 2
0
        public virtual void testShape()
        {
            JDFShape nl = new JDFShape("1.1 2.2 3.3");

            Assert.AreEqual(1.1, nl.doubleAt(0), 0.0);
            Assert.AreEqual(2.2, nl.doubleAt(1), 0.0);
            Assert.AreEqual(3.3, nl.doubleAt(2), 0.0);
            Assert.AreEqual(1.1, nl.X, 0.0);
            Assert.AreEqual(2.2, nl.Y, 0.0);
            Assert.AreEqual(3.3, nl.Z, 0.0);

            nl.Y = 5;
            Assert.AreEqual(5, nl.Y, 0.0);
        }