Examples of projectToSUMO()


Examples of de.hpi.eworld.util.Projection.projectToSUMO()

  public static double[] project(double latitude, double longitude) {
    if (Double.isNaN(latitude) || Double.isNaN(longitude))
      return new double[] { Double.NaN, Double.NaN };

    Projection projection = ProjectionFactory.getInstance().getProjection(latitude, longitude);
    double[] coord = projection.projectToSUMO(longitude, latitude);
    latitude = coord[0];
    longitude = -1 * coord[1];

    return new double[] { latitude, longitude };
  }
View Full Code Here

Examples of de.hpi.eworld.util.Projection.projectToSUMO()

      stringBuffer.append(TEXT_3);
     
      // Perform projection of coordinates
      GlobalPosition g = node.getPosition();
      Projection p = ProjectionFactory.getInstance().getProjection(g.getLatitude(), g.getLongitude());
      double[] projected = p.projectToSUMO(g.getLongitude(), g.getLatitude());
      stringBuffer.append(projected[0]);
      stringBuffer.append(TEXT_4);
      stringBuffer.append(projected[1]);
      stringBuffer.append(TEXT_5);
      stringBuffer.append(type);
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.