[cleanup] removed dead code, and fixed javadocs
This commit is contained in:
parent
8dc851e1db
commit
efd8a3e15e
@ -29,26 +29,11 @@ public class FreeformFinSet extends FinSet {
|
|||||||
|
|
||||||
this.length = 0.05;
|
this.length = 0.05;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public FreeformFinSet(Coordinate[] finpoints) throws IllegalFinPointException {
|
public FreeformFinSet(Coordinate[] finpoints) throws IllegalFinPointException {
|
||||||
setPoints(finpoints);
|
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
|
* 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
|
* 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.
|
* The point is placed at the midpoint of the current segment.
|
||||||
*
|
*
|
||||||
* @param index the fin point before which to add the new point.
|
* @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) {
|
public void addPoint(int index, Point2D.Double location) {
|
||||||
// new method: add new point at closest point
|
// new method: add new point at closest point
|
||||||
|
Loading…
x
Reference in New Issue
Block a user