Example #1
0
 public Coordinate(Coordinate clone) {
   this.x = clone.getX();
   this.y = clone.getY();
 }
Example #2
0
 /**
  * @param c The {@link Coordinate} to compare to
  * @return {@code true} if c's x and y match this Coordinate's x and y, {@code false} otherwise
  */
 public boolean matchesCoordinate(Coordinate c) {
   return (x == c.getX() && y == c.getY());
 }
Example #3
0
 public void setAll(Coordinate c) {
   x = c.getX();
   y = c.getY();
 }