Esempio n. 1
0
        public void Rotate()
        {
            Pln p1 = Pln.XOY;

            p1.Rotate(Ax1.OZ, Math.PI / 2);
            Assert.That(Pnt.Origin.IsEqual(p1.Location, 0.0000001));
            Assert.That(new Dir(0, 1, 0).IsEqual(p1.XAxis.Direction, 0.0000001));
        }
        public void ValueType_Pln()
        {
            Pln    p1 = Pln.XOY;
            double a = 0, b = 0, c = 0, d = 0;

            p1.Coefficients(ref a, ref b, ref c, ref d);
            Assert.AreEqual("0,0,1,0", $"{a},{b},{c},{d}");

            p1.Rotate(Ax1.OZ, Math.PI / 2);
            Assert.AreEqual("(0,0,0),(1.11022302462516E-16,1,0)", p1.XAxis.ToString());
        }