Examples of WayView


Examples of de.hpi.eworld.networkview.objects.WayView

   */
  public static WayView getNearestWayInVicinity(AbstractView<?> view, GraphController controller, Point2D scrolledLocalPoint){
    List<WayView> views = getWaysInVicinity(view, controller, scrolledLocalPoint);
    double nearestDistance = 2 * view.getVicinity();
    double currentDistance = 0;
    WayView nearestWay = null;
    for (WayView way : views){
      for (EdgeModel edge : way.getEdges()){
        Point2D from = edge.getFromNode().getPosition().projected();
        Point2D to = edge.getToNode().getPosition().projected();
        currentDistance = Geometry.getClosestDistance(new Line2D.Double(from, to), scrolledLocalPoint);
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.