Examples of laneOffset()


Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

    public void testLaneOffset() {
        RoadMapping roadMapping = new RoadMappingConcrete(0);
        final double laneWidth = roadMapping.laneWidth();

        roadMapping = new RoadMappingConcrete(1);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE1), delta);

        roadMapping = new RoadMappingConcrete(3);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        RoadMapping roadMapping = new RoadMappingConcrete(0);
        final double laneWidth = roadMapping.laneWidth();

        roadMapping = new RoadMappingConcrete(1);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE1), delta);

        roadMapping = new RoadMappingConcrete(3);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE2), delta);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        roadMapping = new RoadMappingConcrete(1);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE1), delta);

        roadMapping = new RoadMappingConcrete(3);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(+laneWidth, roadMapping.laneOffset(Lanes.LANE3), delta);

        roadMapping = new RoadMappingConcrete(5);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE1), delta);

        roadMapping = new RoadMappingConcrete(3);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(+laneWidth, roadMapping.laneOffset(Lanes.LANE3), delta);

        roadMapping = new RoadMappingConcrete(5);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE1), delta);

        roadMapping = new RoadMappingConcrete(3);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(+laneWidth, roadMapping.laneOffset(Lanes.LANE3), delta);

        roadMapping = new RoadMappingConcrete(5);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-2 * laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        roadMapping = new RoadMappingConcrete(3);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(+laneWidth, roadMapping.laneOffset(Lanes.LANE3), delta);

        roadMapping = new RoadMappingConcrete(5);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-2 * laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE2), delta);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(+laneWidth, roadMapping.laneOffset(Lanes.LANE3), delta);

        roadMapping = new RoadMappingConcrete(5);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-2 * laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE3), delta);
        assertEquals(laneWidth, roadMapping.laneOffset(Lanes.LANE4), delta);
        assertEquals(2 * laneWidth, roadMapping.laneOffset(Lanes.LANE5), delta);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(+laneWidth, roadMapping.laneOffset(Lanes.LANE3), delta);

        roadMapping = new RoadMappingConcrete(5);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-2 * laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE3), delta);
        assertEquals(laneWidth, roadMapping.laneOffset(Lanes.LANE4), delta);
        assertEquals(2 * laneWidth, roadMapping.laneOffset(Lanes.LANE5), delta);

View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        assertEquals(+laneWidth, roadMapping.laneOffset(Lanes.LANE3), delta);

        roadMapping = new RoadMappingConcrete(5);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-2 * laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE3), delta);
        assertEquals(laneWidth, roadMapping.laneOffset(Lanes.LANE4), delta);
        assertEquals(2 * laneWidth, roadMapping.laneOffset(Lanes.LANE5), delta);

        roadMapping = new RoadMappingConcrete(2);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.laneOffset()

        roadMapping = new RoadMappingConcrete(5);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
        assertEquals(-2 * laneWidth, roadMapping.laneOffset(Lanes.LANE1), delta);
        assertEquals(-laneWidth, roadMapping.laneOffset(Lanes.LANE2), delta);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.LANE3), delta);
        assertEquals(laneWidth, roadMapping.laneOffset(Lanes.LANE4), delta);
        assertEquals(2 * laneWidth, roadMapping.laneOffset(Lanes.LANE5), delta);

        roadMapping = new RoadMappingConcrete(2);
        assertEquals(0.0, roadMapping.laneOffset(Lanes.NONE), delta);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.