uk.ac.ic.doc.game
Class Point

java.lang.Object
  extended by uk.ac.ic.doc.game.Point

public class Point
extends java.lang.Object

Represents a point on the screen.


Field Summary
 double x
           
 double y
           
 
Constructor Summary
Point(double x, double y)
          Creates a new point at the given position.
 
Method Summary
 Point clone()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static Point random()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x

y

public double y
Constructor Detail

Point

public Point(double x,
             double y)
Creates a new point at the given position.

Parameters:
x -
y -
Method Detail

clone

public Point clone()
Overrides:
clone in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

random

public static Point random()