ajout: Implémentation de Path#getLength

This commit is contained in:
Brendan Saint Germes 2026-04-10 14:15:01 +02:00
parent 67cd79287d
commit e9bed01d8c

View file

@ -213,11 +213,13 @@ public class Path {
* Compute the length of this path (in meters).
*
* @return Total length of the path (in meters).
* @deprecated Need to be implemented.
*/
public float getLength() {
// TODO:
return 0;
float tailleChemin = 0.0f;
for (Arc arc : this.arcs){
tailleChemin += arc.getLength();
}
return tailleChemin;
}
/**