Update again LabelStar
This commit is contained in:
parent
dee66c6242
commit
d203e56988
1 changed files with 2 additions and 6 deletions
|
|
@ -7,14 +7,10 @@ public class LabelStar extends Label {
|
||||||
|
|
||||||
private double volOiseau;
|
private double volOiseau;
|
||||||
|
|
||||||
public LabelStar(Node sommetCourant) {
|
public LabelStar(Node sommetCourant, Node sommetDestination) {
|
||||||
super(sommetCourant);
|
super(sommetCourant);
|
||||||
volOiseau = Double.POSITIVE_INFINITY;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setVolOiseau(Node sommetDestination) {
|
|
||||||
volOiseau = Point.distance(this.getSommetCourant().getPoint(), sommetDestination.getPoint());
|
volOiseau = Point.distance(this.getSommetCourant().getPoint(), sommetDestination.getPoint());
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getVolOiseau() {
|
public double getVolOiseau() {
|
||||||
return volOiseau;
|
return volOiseau;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue