static void solve() { String[] s = in.next().split(","); Point p = reflect( new Line( Double.parseDouble(s[0]), Double.parseDouble(s[1]), Double.parseDouble(s[2]), Double.parseDouble(s[3])), new Point(Double.parseDouble(s[4]), Double.parseDouble(s[5]))); out.println(p.getX() + " " + p.getY()); }
public String toString() { return "[(" + p1.getX() + "," + p1.getY() + "),(" + p2.getX() + "," + p2.getY() + ")]"; }
public double getY2() { return p2.getY(); }
public double getY1() { return p1.getY(); }
public Vector plus(Point p) { return new Vector(this.x + p.getX(), this.y + p.getY()); }
public Vector(Point target, Point source) { this.x = target.getX() - source.getX(); this.y = target.getY() - source.getY(); }