예제 #1
0
 public String toString() {
   List<Vector2D> anchors = new ArrayList<>(this.size());
   for (WeightedWaypoint wp : this) {
     anchors.add(wp.computeAnchor());
   }
   return anchors.toString();
 }
예제 #2
0
 public int computeCost() {
   int sum = 0;
   for (WeightedWaypoint wp : this) {
     sum += wp.computeCost();
   }
   return sum;
 }