Examples of projected()


Examples of de.hpi.eworld.model.db.data.GlobalPosition.projected()

   
    GlobalPosition edgeStartGlobal = edge.getFromNode().getPosition();
    GlobalPosition edgeEndGlobal = edge.getToNode().getPosition();

    Point2D edgeStartLocal = edgeStartGlobal.projected();
    Point2D edgeEndLocal = edgeEndGlobal.projected();
   
    double globalLenght = edgeEndGlobal.distanceTo(edgeStartGlobal);
    double localLength = Point2DUtils.distance(edgeEndLocal, edgeStartLocal);
    double distanceToStart = Point2DUtils.distance(position, edgeStartLocal);
   
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.