Rect.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 package org.gecode.gist;
00024
00025 public class Rect {
00026 int x;
00027 int y;
00028 int width;
00029 int height;
00030
00031 public Rect(int _x, int _y, int _width, int _height) {
00032 x = _x;
00033 y = _y;
00034 width = _width;
00035 height = _height;
00036 }
00037
00038 public String toString() {
00039 return ""+x+"+"+width+","+y+"+"+height;
00040 }
00041 }