|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Point
Questa classe rappresenta un punto nello spazio bidimensionale
Constructor Summary | |
Point(double x,
double y)
Crea un nuovo punto, date le coordinate |
Method Summary | |
double |
getX()
Restituisce la coordinata X del punto |
double |
getY()
Restituisce la coordinata Y del punto |
java.lang.String |
toString()
Restituisce la rappresentazione testuale del punto, nel formato (X,Y) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Point(double x, double y)
x
- - coordinata X del puntoy
- - coordinata Y del puntoMethod Detail |
public double getX()
public double getY()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |