Examples of mapFloat()


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

            final double simulationTime = trafficCanvas.simulationRunnable.simulationTime();
            for (final RoadSegment roadSegment : roadNetwork) {
                final RoadMapping roadMapping = roadSegment.roadMapping();
                for (final Vehicle vehicle : roadSegment) {
                    // TODO quick hack here,no correction for offsets
                    final RoadMapping.PolygonFloat polygon = roadMapping.mapFloat(vehicle, simulationTime);
                    path.reset();
                    path.moveTo(polygon.xPoints[0], polygon.yPoints[0]);
                    path.lineTo(polygon.xPoints[1], polygon.yPoints[1]);
                    path.lineTo(polygon.xPoints[2], polygon.yPoints[2]);
                    path.lineTo(polygon.xPoints[3], polygon.yPoints[3]);
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.