forked from lebotlan/BE-Graphes
Compare commits
2 commits
941ff07d89
...
472b578692
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
472b578692 | ||
|
|
ac08a9ded0 |
2 changed files with 6 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -19,3 +19,4 @@ doc
|
||||||
*.mapgr
|
*.mapgr
|
||||||
*.path
|
*.path
|
||||||
*.tgz
|
*.tgz
|
||||||
|
/.metadata/
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue