Exemplo n.º 1
0
        public void PlaneReflectInPlaneTest()
        {
            Coord3d coord1 = new Coord3d(new Point3d(2, 3, 1), Matrix3d.RotationMatrix(new Vector3d(2, 1, 5), PI / 3));
            Coord3d coord2 = new Coord3d(new Point3d(1, -3, 4), Matrix3d.RotationMatrix(new Vector3d(3, 2, 1), PI / 2));

            Plane3d s1 = new Plane3d(1, 2, -2, -3, coord1);
            Plane3d s2 = new Plane3d(2, -1, 3, -1, coord2);
            Plane3d s3 = s1.ReflectIn(s2);

            s3.Point = s3.Point.ConvertTo(coord2);
            Plane3d s4 = s3.ReflectIn(s2);

            bool bol = s4.Equals(s1);

            Assert.IsTrue(s4 == s1);
        }