|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Pointd
Class Pointd
is used to represent 2D points.
Field Summary | |
double |
x
The X value. |
double |
y
The Y value. |
Constructor Summary | |
Pointd()
Creates a new Pointd instance, initialized to (0,0). |
|
Pointd(double x,
double y)
Creates a new Pointd instance. |
Method Summary | |
double |
getX()
Return the X value. |
double |
getY()
Return the Y value. |
java.lang.String |
toString()
Print the (x,y) values as a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double x
public double y
Constructor Detail |
public Pointd(double x, double y)
Pointd
instance.
x
- a double
valuey
- a double
valuepublic Pointd()
Pointd
instance, initialized to (0,0).
Method Detail |
public double getX()
double
valuepublic double getY()
double
valuepublic java.lang.String toString()
String
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |