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