Package de.ailis.jollada.model

Examples of de.ailis.jollada.model.GeographicLocation


    @Test
    public void testToString()
    {
        assertEquals("GeographicLocation [longitude=1.0, latitude=2.0, " +
                "altitude=3.0, altitudeMode=ABSOLUTE]", new GeographicLocation(
            1, 2, 3, AltitudeMode.ABSOLUTE).toString());
    }
View Full Code Here


     */

    @Test
    public void testLongitude()
    {
        final GeographicLocation location = new GeographicLocation(1, 2, 3);
        location.setLongitude(10);
        assertEquals(10, location.getLongitude(), 0.0001f);
    }
View Full Code Here

     */

    @Test
    public void testLatitude()
    {
        final GeographicLocation location = new GeographicLocation(1, 2, 3);
        location.setLatitude(10);
        assertEquals(10, location.getLatitude(), 0.0001f);
    }
View Full Code Here

     */

    @Test
    public void testAltitude()
    {
        final GeographicLocation location = new GeographicLocation(1, 2, 3);
        location.setAltitude(10);
        assertEquals(10, location.getAltitude(), 0.0001f);
    }
View Full Code Here

     */

    @Test
    public void testAltitudeMode()
    {
        final GeographicLocation location = new GeographicLocation(1, 2, 3,
            AltitudeMode.ABSOLUTE);
        location.setAltitudeMode(AltitudeMode.RELATIVE_TO_GROUND);
        assertEquals(AltitudeMode.RELATIVE_TO_GROUND,
            location.getAltitudeMode());
    }
View Full Code Here

     */

    @Test
    public void testAltitudeAndMode()
    {
        final GeographicLocation location = new GeographicLocation(1, 2, 3,
            AltitudeMode.ABSOLUTE);
        location.setAltitude(10, AltitudeMode.RELATIVE_TO_GROUND);
        assertEquals(10, location.getAltitude(), 0.0001f);
        assertEquals(AltitudeMode.RELATIVE_TO_GROUND,
            location.getAltitudeMode());
    }
View Full Code Here

TOP

Related Classes of de.ailis.jollada.model.GeographicLocation

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.