Commit cacfc585 authored by Niklas-Stoehr's avatar Niklas-Stoehr
Browse files

-- vector modified

parent b5862a04
...@@ -307,11 +307,13 @@ public class PositionVector implements Location { ...@@ -307,11 +307,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;
} }
/** /**
......
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