public static double getFlatness(double[] coords, int offset)
 {
     return(Line2D.ptSegDist(
                coords[offset + 0], coords[offset + 1],
                coords[offset + 4], coords[offset + 5],
                coords[offset + 2], coords[offset + 3]));
 }
 public static double getFlatness(double x1, double y1, double ctrlx,
                                  double ctrly, double x2, double y2)
 {
     return(Line2D.ptSegDist(x1, y1, x2, y2, ctrlx, ctrly));
 }
 public double getFlatness()
 {
     return(Line2D.ptSegDist(getX1(), getY1(), getX2(), getY2(), getCtrlX(), getCtrlY()));
 }