[cleanup] removed dead code, and fixed javadocs

This commit is contained in:
Daniel_M_Williams 2018-09-03 22:52:25 -04:00
parent 8dc851e1db
commit efd8a3e15e

View File

@ -29,26 +29,11 @@ public class FreeformFinSet extends FinSet {
this.length = 0.05;
}
public FreeformFinSet(Coordinate[] finpoints) throws IllegalFinPointException {
setPoints(finpoints);
}
/*
public FreeformFinSet(FinSet finset) {
Coordinate[] finpoints = finset.getFinPoints();
this.copyFrom(finset);
points.clear();
for (Coordinate c: finpoints) {
points.add(c);
}
this.length = points.get(points.size()-1).x - points.get(0).x;
}
*/
/**
* Convert an existing fin set into a freeform fin set. The specified
* fin set is taken out of the rocket tree (if any) and the new component
@ -129,7 +114,7 @@ public class FreeformFinSet extends FinSet {
* The point is placed at the midpoint of the current segment.
*
* @param index the fin point before which to add the new point.
* @param point the target location to create the new point at
* @param location the target location to create the new point at
*/
public void addPoint(int index, Point2D.Double location) {
// new method: add new point at closest point