Package ds.moteur.route.cc.elements

Examples of ds.moteur.route.cc.elements.LigneElementaire


   
    double longueurPartielle = 0;
    double distanceInterPts = 0;
   
    for (int i=0; i<elements.size(); i++){
      LigneElementaire element = elements.get(i);
      distanceInterPts = element.getLongueur();
      if (longueurPartielle + distanceInterPts > abscisse){
        boolean recupere = element.recupererPosition(point, angle, abscisse - longueurPartielle);
        surCourbe = recupere;
        break;
      }
      longueurPartielle += distanceInterPts;
    }
View Full Code Here


 
  public double getLongueur(){
    double longueur = 0;
   
    for (int i=0; i<elements.size(); i++){
      LigneElementaire element = elements.get(i);
      longueur += element.getLongueur();
    }
   
    return longueur;
  }
View Full Code Here

TOP

Related Classes of ds.moteur.route.cc.elements.LigneElementaire

Copyright © 2018 www.massapicom. 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.