Commit 857e9bf0 authored by Julian Zobel's avatar Julian Zobel
Browse files

Position Vector:

- removed dimension field (redundant, access through 'values' field
- updated toString(), now correctly working with dimensions > 2
parent 94d7be9a
......@@ -403,8 +403,7 @@ public class PositionVector implements Location {
@Override
public String toString() {
String s = "PV(";
String s = "PV(";
for(int i = 0; i < getDimensions(); i++) {
s += values[i];
if(i < getDimensions() - 1) {
......@@ -413,8 +412,6 @@ public class PositionVector implements Location {
}
s += ")";
return s;
//return "(" + values[0] + ", " + values[1] + ")";
//return "PV("+getDimensions()+") " + Arrays.toString(values) + "";
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment