methode getLength terminee

This commit is contained in:
Thior Youssouf-Ben-Abdallah 2025-04-04 09:57:36 +02:00
parent 68b73d1b17
commit fe83a92509

View file

@ -198,8 +198,12 @@ public class Path {
* @deprecated Need to be implemented.
*/
public float getLength() {
// TODO:
return 0;
float length = 0f;
for(Arc arcs : this.arcs)
{
length += arcs.getLength();
}
return length;
}
/**