|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecticar.util.Point
Cette classe représente un point à 3 composantes:
- coordonnée X
- coordonnée Y
- coordonnée temporelle
Constructor Summary | |
Point(int x,
int y,
long date)
Cree un point à partir des 3 coordonnées |
|
Point(Point p)
Cree un point à partir d'un autre point |
Method Summary | |
double |
distance(Point p)
Permet de calculer la distance séparant 2 points |
long |
getDate()
Describe Renvoie la coordonnée temporelle du point |
int |
getX()
Renvoie la coordonnée X du point |
int |
getY()
Renvoie la coordonnée Y du point |
java.lang.String |
toString()
Renvoie une représentation textuelle du point |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Point(int x, int y, long date)
x
- a value of type 'int'y
- a value of type 'int'date
- a value of type 'long'public Point(Point p)
p
- a value of type 'Point'Method Detail |
public int getX()
public int getY()
public long getDate()
public double distance(Point p)
p
- le point dont on cherche la distance depuis le point courant
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |