|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPoint
public class Point
Constructor Summary | |
---|---|
Point()
Creates a point at the origin (x=y=0). |
|
Point(double x,
double y)
Creates a point with the given x-y coordinates. |
Method Summary | |
---|---|
double |
getX()
Returns the value of x. |
double |
getY()
Returns the value of y. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Point(double x, double y)
x
- x coordinatey
- y coordinatepublic Point()
Method Detail |
---|
public double getX()
public double getY()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |