return Line2D.ptSegDistSq(coords[offset], coords[offset + 1], coords[offset + 4], coords[offset + 5], coords[offset + 2], coords[offset + 3]);
return Line2D.ptSegDistSq(x1, y1, x2, y2, cx, cy);
  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]);	}