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
7b07b451
Commit
7b07b451
authored
Jan 13, 2021
by
Julian Zobel
Browse files
Merge remote-tracking branch 'origin/jz/studienarbeit-niklas-stoehr' into jz/int-dmaa
parents
314bc42d
652c5bb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/util/PositionVector.java
View file @
7b07b451
...
...
@@ -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
...
...
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