Implemented getLength
Tento commit je obsažen v:
rodič
3bba019763
revize
b070983a49
2 změnil soubory, kde provedl 6 přidání a 4 odebrání
|
|
@ -209,12 +209,14 @@ 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 length = 0;
|
||||
for (Arc a : this.arcs) {
|
||||
length += a.getLength();
|
||||
}
|
||||
return length;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
binární
uml.dia
binární
uml.dia
Binární soubor nebyl zobrazen.
Načítání…
Odkázat v novém problému