|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPointCartesien
Modélise la notion de coordonnée avec une représentation cartésienne
Vecteur
Constructor Summary | |
PointCartesien()
Construction d'un point à l'origine. |
|
PointCartesien(double x,
double y)
Construction d'un point |
|
PointCartesien(PointCartesien p)
Construction d'un point par clonage |
Method Summary | |
double |
abscisse()
Restitue l'abscisse du point |
boolean |
equals(PointCartesien p)
Compare 2 points cartésiens |
double |
ordonnee()
Restitue l'ordonnée du point |
void |
positionner(double x,
double y)
Positionne le point à la coordonnée cartésienne {x,y} |
void |
rotation(double a)
Rotation du point par rapport à l'origine d'un angle a |
void |
rotation(PointCartesien p,
double a)
Rotation du point par rapport à un point quelconque d'un angle a |
java.lang.String |
toString()
Restitue la représentation textuelle du point |
void |
translation(Vecteur v)
Translate le point selon le vecteur v |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PointCartesien()
public PointCartesien(double x, double y)
x
- la première coordonnée (abscisse)y
- la seconde coordonnée (ordonnée)public PointCartesien(PointCartesien p)
p
- le point à clonerMethod Detail |
public double abscisse()
public double ordonnee()
public java.lang.String toString()
public void positionner(double x, double y)
x
- l'abscissey
- l'ordonnéepublic boolean equals(PointCartesien p)
p
- l'autre point
public void translation(Vecteur v)
v
- le vecteur de translationpublic void rotation(double a)
a
- l'angle en degrépublic void rotation(PointCartesien p, double a)
p
- point servant de centre de rotationa
- l'angle en degré
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |