public class Point
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
abs |
protected static int |
compteur |
protected double |
ord |
Constructor and Description |
---|
Point(double a,
double o)
initialiser un point a partir de ses coordonnees cartesiennes
|
Point(Point p)
Constructeur de copie
|
Modifier and Type | Method and Description |
---|---|
void |
deplacer(double ca,
double co)
Translater le point
|
double |
determinant(Point p) |
double |
distance(Point p) |
boolean |
equals(java.lang.Object obj) |
double |
getAbscisse() |
static int |
getCount()
Nombre d'instanciations de points
|
double |
getOrdonnee() |
int |
hashCode() |
static void |
main(java.lang.String[] args) |
double |
rho() |
double |
teta() |
java.lang.String |
toString() |
protected double abs
protected double ord
protected static int compteur
public Point(double a, double o)
a
- abscisseo
- ordonnéepublic Point(Point p)
public java.lang.String toString()
toString
in class java.lang.Object
public double getAbscisse()
public double getOrdonnee()
public double rho()
public double teta()
public double determinant(Point p)
p
- public double distance(Point p)
p
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static int getCount()
public void deplacer(double ca, double co)
ca
- coefficient de translation sur les abscissesco
- coefficient de translation sur les ordonnéespublic static void main(java.lang.String[] args)