path.getLength

This commit is contained in:
Yanis Mahé 2026-04-15 16:43:19 +02:00
parent 941ff07d89
commit ac08a9ded0

View file

@ -195,11 +195,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 result = 0f;
for (Arc arc : arcs) {
result += arc.getLength();
}
return result;
}
/**