Back to index

plt-scheme  4.2.1
Posn.java
Go to the documentation of this file.
00001 package graphics;
00002 
00003 public class Posn {
00004   public int x;
00005   public int y;
00006 
00007   public Posn(int x, int y) {
00008     this.x = x;
00009     this.y = y;
00010   }
00011 
00012   public boolean equals(Object p) {
00013     return p instanceof Posn && ((Posn) p).x==this.x && ((Posn) p).y == this.y;
00014   }
00015 }