path.getLength
This commit is contained in:
parent
941ff07d89
commit
ac08a9ded0
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue