1
0
Fork 0

Update again LabelStar

This commit is contained in:
Sebastien Moll 2026-05-12 16:10:51 +02:00
parent dee66c6242
commit d203e56988

View file

@ -7,14 +7,10 @@ public class LabelStar extends Label {
private double volOiseau;
public LabelStar(Node sommetCourant) {
public LabelStar(Node sommetCourant, Node sommetDestination) {
super(sommetCourant);
volOiseau = Double.POSITIVE_INFINITY;
}
public void setVolOiseau(Node sommetDestination) {
volOiseau = Point.distance(this.getSommetCourant().getPoint(), sommetDestination.getPoint());
}
}
public double getVolOiseau() {
return volOiseau;