Example #1
0
        public void Rotate()
        {
            var res = new Ax3(new Pnt(1, 1, 2), new Dir(1, 0, 0), new Dir(0, -1, 0));
            var a1  = new Ax1(new Pnt(2, 2, 2), new Dir(1, 0, 0));
            var p2  = new Ax3(new Pnt(1, 2, 3), new Dir(1, 0, 0));

            Assert.IsTrue(res.IsCoplanar(p2.Rotated(a1, Math.PI / 2), 0, 0));
            p2.Rotate(a1, Math.PI / 2);
            Assert.IsTrue(res.IsCoplanar(p2, 0, 0));
        }