Package slash.navigation.common

Examples of slash.navigation.common.BoundingBox


        assertTrue(new BoundingBox(2.0, -1.0, 1.0, -2.0).contains(asPosition(1.5, -1.5)));
    }

    @Test
    public void testNotContains() {
        assertFalse(new BoundingBox(0.0, 0.0, 0.0, 0.0).contains(asPosition(0.0, 0.0)));
        assertFalse(new BoundingBox(-0.1, -0.1, 0.0, 0.0).contains(asPosition(0.0, 0.0)));
        assertFalse(new BoundingBox(0.0, 0.0, -0.1, -0.1).contains(asPosition(0.0, 0.0)));
        assertFalse(new BoundingBox(-0.1, -0.1, -0.1, -0.1).contains(asPosition(0.0, 0.0)));
    }
View Full Code Here


        file2.getFragment().add(file2fragment);
        datasourceType.getFile().add(file2);

        FileType file3 = new FileType();
        file3.setUri("file3uri" + id);
        file3.setBoundingBox(asBoundingBoxType(new BoundingBox(new SimpleNavigationPosition(1.0, 2.0), new SimpleNavigationPosition(3.0, 4.0))));
        file3.getChecksum().add(createChecksumType(3L, CALENDARF3, "file3"));
        FragmentType fileType3fragment1 = new FragmentType();
        fileType3fragment1.setKey("fragment1key");
        fileType3fragment1.getChecksum().add(createChecksumType(31L, CALENDARF3F1, "file3 fragment1"));
        file3.getFragment().add(fileType3fragment1);
        FragmentType fileType3fragment2 = new FragmentType();
        fileType3fragment2.setKey("fragment2key");
        fileType3fragment2.getChecksum().add(createChecksumType(32L, CALENDARF3F2, "file3 fragment2"));
        file3.getFragment().add(fileType3fragment2);
        datasourceType.getFile().add(file3);

        MapType map = new MapType();
        map.setUri("mapuri" + id);
        map.setBoundingBox(asBoundingBoxType(new BoundingBox(new SimpleNavigationPosition(1.0, 2.0), new SimpleNavigationPosition(3.0, 4.0))));
        map.getChecksum().add(createChecksumType(100L, CALENDARM, "map"));
        FragmentType mapfragment = new FragmentType();
        mapfragment.setKey("fragmentkey" + id);
        mapfragment.getChecksum().add(createChecksumType(101L, CALENDARMF, "map fragment"));
        map.getFragment().add(mapfragment);
View Full Code Here

TOP

Related Classes of slash.navigation.common.BoundingBox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.