public static double getFlatnessSq(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) { return(java.lang.Math.max( Line2D.ptSegDistSq(x1, y1, x2, y2, ctrlx1, ctrly1), Line2D.ptSegDistSq(x1, y1, x2, y2, ctrlx2, ctrly2))); }
public static double getFlatnessSq(double[] coords, int offset) { return(Line2D.ptSegDistSq( coords[offset + 0], coords[offset + 1], coords[offset + 4], coords[offset + 5], coords[offset + 2], coords[offset + 3])); }
public double getFlatnessSq() { return(Line2D.ptSegDistSq( getX1(), getY1(), getX2(), getY2(), getCtrlX(), getCtrlY())); }
public static double getFlatnessSq(double x1, double y1, double ctrlx, double ctrly, double x2, double y2) { return(Line2D.ptSegDistSq(x1, y1, x2, y2, ctrlx, ctrly)); }