|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.moioli.drawables.DoublePoint
public class DoublePoint
Represents a point in the cartesian plane.
Field Summary | |
---|---|
double |
x
The x coordinate of the Point. |
double |
y
The y coordinate of the Point. |
Constructor Summary | |
---|---|
DoublePoint()
Constructs the point (0,0). |
|
DoublePoint(double x,
double y)
Standard constructor. |
|
DoublePoint(DoublePoint p)
Copy constructor. |
Method Summary | |
---|---|
double |
getX()
Returns x. |
double |
getY()
Returns y. |
void |
setX(double x)
Sets the x value. |
void |
setY(double y)
Sets the y value. |
java.lang.String |
toString()
Returns a representaive 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 DoublePoint()
public DoublePoint(DoublePoint p)
p
- the point to be copiedpublic DoublePoint(double x, double y)
x
- the point's x coordinatey
- the point's y coordinateMethod Detail |
---|
public double getX()
public double getY()
public java.lang.String toString()
toString
in class java.lang.Object
public void setX(double x)
x
- the new x coordinatepublic void setY(double y)
y
- the new y coordinate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |