1
0
Fork 0

Compare commits

..

2 commits

Author SHA1 Message Date
Yanis Mahé
472b578692 Add /.metadata/ to.gitignore 2026-04-15 16:46:21 +02:00
Yanis Mahé
ac08a9ded0 path.getLength 2026-04-15 16:46:21 +02:00
2 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View file

@ -19,3 +19,4 @@ doc
*.mapgr *.mapgr
*.path *.path
*.tgz *.tgz
/.metadata/

View file

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