@Test public void opposite() { Point point = Geometry.opposite(new Point(1, 2)); assertEquals(-1, point.x); assertEquals(-2, point.y); }
public static Point opposite(Point point) { int oppositeX = point.x * -1; int oppositeY = point.y * -1; return new Point(oppositeX, oppositeY); }
Geometry { public static Point opposite(Point point) { int oppositeX = point.x * -1; int oppositeY = point.y * -1; return new Point(oppositeX, oppositeY); } }
Geometry { public static Point opposite(Point point) { int oppositeX = point.x * -1; int oppositeY = point.y * -1; return new Point(oppositeX, oppositeY); }  }
Geometry { public static Point opposite(Point point) { int oppositeX = point.x * -1; int oppositeY = point.y * -1; return new Point(oppositeX, oppositeY); }  static Dimension increase(int amount, Dimension dimension); static Point offset(int amount, Point point); static Point offset(Point offset, Point point); static Point opposite(Point point); }
Geometry { public static Point opposite(Point point) { int oppositeX = point.x * -1; int oppositeY = point.y * -1; return new Point(oppositeX, oppositeY); }  static Dimension increase(int amount, Dimension dimension); static Point offset(int amount, Point point); static Point offset(Point offset, Point point); static Point opposite(Point point);  }