public static double getFlatnessSq(double[] coords, int offset)
public static double getFlatnessSq(double x1, double y1, double cx, double cy, double x2, double y2)
  public static double getFlatnessSq(double[] coords, int offset)  {    return Line2D.ptSegDistSq(coords[offset], coords[offset + 1],                              coords[offset + 4], coords[offset + 5],                              coords[offset + 2], coords[offset + 3]);	}