Commit 7b07b451 authored by Julian Zobel's avatar Julian Zobel
Browse files

Merge remote-tracking branch 'origin/jz/studienarbeit-niklas-stoehr' into jz/int-dmaa

parents 314bc42d 652c5bb6
...@@ -303,11 +303,13 @@ public class PositionVector implements Location { ...@@ -303,11 +303,13 @@ public class PositionVector implements Location {
* Multiply this vector with a scalar value * Multiply this vector with a scalar value
* *
* @param multi * @param multi
* @return the vector
*/ */
public void multiplyScalar(double multi) { public PositionVector multiplyScalar(double multi) {
for (int i = 0; i < dimensions; i++) { for (int i = 0; i < dimensions; i++) {
setEntry(i, multi * getEntry(i)); setEntry(i, multi * getEntry(i));
} }
return this;
} }
/** /**
...@@ -402,8 +404,9 @@ public class PositionVector implements Location { ...@@ -402,8 +404,9 @@ public class PositionVector implements Location {
} }
@Override @Override
public String toString() { public String toString() {
return "PV("+getDimensions()+") " + Arrays.toString(values) + ""; return "(" + values[0] + ", " + values[1] + ")";
//return "PV("+getDimensions()+") " + Arrays.toString(values) + "";
} }
@Override @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