uk.ac.ic.doc.game
Class Point
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
x
public double x
y
public double y
Point
public Point(double x,
double y)
- Creates a new point at the given position.
- Parameters:
x
- y
-
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()