Package de.psi.telco.sumoplayer.util

Examples of de.psi.telco.sumoplayer.util.PointImpl.sub()


        PointImpl endPos = new PointImpl(points.get(idx+1).getX(),points.get(idx+1).getY());
        double partialLen = startPos.distance(endPos);
        double rest = pos-len;
        double fact = rest/partialLen;
       
        Vector out = startPos.add((endPos.sub(startPos).scale(fact)));
        return new PointImpl(out.getX(),out.getY());
      }else{
        return points.get(points.size()-1);    // just return last point
      }
   
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.