Exemple #1
0
        public void TestDirectPosition()
        {
            FdoFgfGeometryFactory factory = FdoFgfGeometryFactory.GetInstance();

            FdoIDirectPosition pointXY = factory.CreatePositionXY(5.0, 6.0);

            //DumpPosition("", pointXY);
            CheckPositionXY(pointXY, 5.0, 6.0);

            FdoIDirectPosition pointXYM = factory.CreatePositionXYM(1.0, 3.0, 5.0);

            //DumpPosition("", pointXYM);
            CheckPositionXYM(pointXYM, 1.0, 3.0, 5.0);

            FdoIDirectPosition pointXYZ = factory.CreatePositionXYZ(2.0, 7.0, 10.0);

            //DumpPosition("", pointXYZ);
            CheckPositionXYZ(pointXYZ, 2.0, 7.0, 10.0);

            FdoIDirectPosition pointXYZM = factory.CreatePositionXYZM(1.23, 4.26, 3.67, 3.14);

            //DumpPosition("", pointXYZM);
            CheckPositionXYZM(pointXYZM, 1.23, 4.26, 3.67, 3.14);
        }