public bool intersectsLine(Line2D l) { return intersectsLine(l.getX1(), l.getY1(), l.getX2(), l.getY2()); }
/** * Constructs a new Line2D.Iterator for given line and transformation * @param l - the source Line2D object * @param at - the AffineTransform object to apply rectangle path */ internal Iterator(Line2D l, AffineTransform at) { this.x1 = l.getX1(); this.y1 = l.getY1(); this.x2 = l.getX2(); this.y2 = l.getY2(); this.t = at; }
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 void setLine(Line2D line) { setLine(line.getX1(), line.getY1(), line.getX2(), line.getY2()); }
public double getFlatness() { return(Line2D.ptSegDist(getX1(), getY1(), getX2(), getY2(), getCtrlX(), getCtrlY())); }