- Coordinate[] c = new Coordinate[4];
-
- c[0] = Coordinate.NUL;
- c[1] = new Coordinate(sweep,height);
- c[2] = new Coordinate(sweep+tipChord,height);
- c[3] = new Coordinate(length,0);
-
- return c;
+ List<Coordinate> list = new ArrayList<Coordinate>(4);
+
+ list.add(Coordinate.NUL);
+ list.add(new Coordinate(sweep, height));
+ if (tipChord > 0.0001) {
+ list.add(new Coordinate(sweep + tipChord, height));
+ }
+ list.add(new Coordinate(MathUtil.max(length, 0.0001), 0));
+
+ return list.toArray(new Coordinate[list.size()]);