Coordinate.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 package org.gecode.gist;
00026
00027
00028 public class Coordinate {
00029
00030 private int x;
00031 private int y;
00032
00033 public Coordinate() {
00034 this.x = 0;
00035 this.y = 0;
00036 }
00037
00038 public Coordinate(int theX, int theY) {
00039 this.x = theX;
00040 this.y = theY;
00041 }
00042
00043 public int x() {
00044 return x;
00045 }
00046
00047 public int y() {
00048 return y;
00049 }
00050
00051 public void set(int theX, int theY) {
00052 this.x = theX;
00053 this.y = theY;
00054 }
00055
00056 public String toString() {
00057 return "("+x+","+y+")";
00058 }
00059 }