|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.mazewar.Point
public class Point
An integral representation of a point in two dimensional space.
Constructor Summary | |
---|---|
Point(int x,
int y)
Create a new Point from coordinates. |
|
Point(Point point)
Create a new Point from another Point . |
Method Summary | |
---|---|
int |
getX()
Obtain the X-coordinate of this Point . |
int |
getY()
Obtain the Y-coordinate of this Point . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Point(int x, int y)
Point
from coordinates.
x
- Coordinate in the X-dimension.y
- Coordinate in the Y-dimension.public Point(Point point)
Point
from another Point
.
point
- Point
to copy from.Method Detail |
---|
public int getX()
Point
.
Point
.public int getY()
Point
.
Point
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |