Package ds.moteur.route.cc.elements

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


   */
  public boolean addSegment(){
    boolean ok = false;
   
    if (elements.size() <= positions.size()-1){
      Segment segment = new Segment(positions.get(indexElement), positions.get(indexElement+1));
      segment.calculerLongueur();
      this.elements.add(segment);
      ok = true;
      //System.out.println("Segment ajout� depuis : " + positions.get(indexElement).x + "/" + positions.get(indexElement).y);
      indexElement++;
    }
View Full Code Here

TOP

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

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.