public class Position
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
x
coordonnée X
|
int |
y
coordonnée Y
|
int |
z
coordonnée Z
|
Constructor and Description |
---|
Position()
Création d'un polygone vide
|
Position(int x,
int y,
int z)
Création d'un polygone.
|
Modifier and Type | Method and Description |
---|---|
Position |
clone()
clone d'une Position
|
void |
ecrire(java.io.PrintStream ps)
Ecrire dans un flot de texte le polygone
|
boolean |
equals(Position p)
Teste si deux positions ont égales
|
void |
lire(java.io.BufferedReader br)
Lire dans un flot de texte le polygone
|
java.lang.String |
toString()
Position en chaine
|
public Position()
public Position(int x, int y, int z)
x
- coordonnée en Xy
- coordonnée en Yz
- coordonnée en Zpublic Position clone()
clone
in class java.lang.Object
public boolean equals(Position p)
p
- positionà testerpublic void ecrire(java.io.PrintStream ps) throws java.lang.Exception
ps
- flot d'écriture textejava.lang.Exception
- si erreur d'écriturepublic void lire(java.io.BufferedReader br) throws java.lang.Exception
br
- flot de lecture textejava.lang.Exception
- si erreur de lecturepublic java.lang.String toString()
toString
in class java.lang.Object