Esempio n. 1
0
        public void TestEnvelope()
        {
            FdoFgfGeometryFactory gf = FdoFgfGeometryFactory.GetInstance();

            FdoIDirectPosition pos1  = gf.CreatePositionXY(5.0, 6.0);
            FdoIDirectPosition pos2  = gf.CreatePositionXY(10.0, 13.0);
            FdoIEnvelope       envl2 = gf.CreateEnvelope(pos1, pos2);

            //DumpEnvelope(envl2);
            CheckEnvelope(envl2, pos1, pos2);

            FdoIEnvelope envl3 = gf.CreateEnvelopeXY(4.0, 3.0, 12.0, 120.0);

            //DumpEnvelope(envl3);
            CheckEnvelopeXY(envl3, 4.0, 3.0, 12.0, 120.0);

            FdoIEnvelope envl4 = gf.CreateEnvelopeXYZ(12.0, 45.0, 1.0, 34.0, 39.0, 2.0);

            //DumpEnvelope(envl4);
            CheckEnvelopeXYZ(envl4, 12.0, 45.0, 1.0, 34.0, 39.0, 2.0);

            /*
             * FdoIEnvelope envl5 = gf.CreateEnvelope(envl4);
             * //DumpEnvelope(envl5);
             * CheckEqualEnvelopes(envl4, envl5);
             *
             * FdoIEnvelope envl6 = gf.CreateEnvelope(envl5);
             * //DumpEnvelope(envl5);
             * CheckEqualEnvelopes(envl6, envl5);
             */
        }