|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPoint
Caractérisation de la notion usuelle de point en geometrie dans un espace en deux dimensions. C'est a dire un objet caracterise par une abcisse et une ordonnee.
Class Specifications |
Specifications inherited from class Object |
represents objectState <- JMLDataGroup.IT; |
Model Field Summary |
Model fields inherited from class java.lang.Object |
objectState |
Ghost Field Summary |
Ghost fields inherited from class java.lang.Object |
objectTimesFinalized, owner |
Constructor Summary | |
Point()
Initialise un point de coordonees (0, 0) |
|
Point(int xy)
Initialise un point dont l'abcisse et l'odonnee sont identiques et egales a la valeur donnee en parametre |
|
Point(int x,
int y)
Initialise un point dont l'abcisse et l'odonnee sont donnees en parametre. |
|
Point(Point unPoint)
Clonage d'un point. |
Method Summary | |
double |
distanceA(Point autrePoint)
Calcule la distance du point courant au point passé en argument. |
boolean |
equals(java.lang.Object obj)
Test d'égalité |
int |
getX()
Renvoie l'abcisse du point |
int |
getY()
Renvoie l'ordonnee du point |
boolean |
isOrigine()
Teste si le point courant est l'origine du repère. |
Point |
symetrie()
Cree un nouveau point symetrique du point courant par rapport a l'axe des ordonnees |
java.lang.String |
toString()
Description of the Method |
Point |
translater(int deltaX,
int deltaY)
Cree un nouveau point par translation de deltaX selon l'axe des abcisses et de deltaY selon l'axe des ordonnées. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Point()
public Point(int xy)
xy
- La valeur de l'abcisse et de l'ordonnee du nouveau pointpublic Point(int x, int y)
x
- Description of Parametery
- Description of Parameterpublic Point(Point unPoint)
unPoint
- le point a clonerMethod Detail |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Description of the Parameter
public int getX()
public int getY()
public Point symetrie()
public Point translater(int deltaX, int deltaY)
deltaX
- valeur a ajouter a l'abcissedeltaY
- valeur a ajouter a l'ordonnées
public boolean isOrigine()
public double distanceA(Point autrePoint)
autrePoint
- Point dont on souhaite connaitre la distance du point
courant
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 |