Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
cacfc585
Commit
cacfc585
authored
Jun 26, 2020
by
Niklas-Stoehr
Browse files
-- vector modified
parent
b5862a04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/util/PositionVector.java
View file @
cacfc585
...
...
@@ -307,11 +307,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
;
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment