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
SimAquaLife
GR3D
Commits
6e7f94b4
Commit
6e7f94b4
authored
Sep 11, 2020
by
Poulet Camille
Browse files
RIO observer
parent
87bf4ad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/environment/RIOBasinNetworkObserverPresence.java
View file @
6e7f94b4
...
...
@@ -183,7 +183,7 @@ public class RIOBasinNetworkObserverPresence extends ObserverListener implements
if
(
mapContinent
==
null
)
{
maxX
=
maxY
=
Double
.
NEGATIVE_INFINITY
;
minX
=
minY
=
Double
.
POSITIVE_INFINITY
;
mapContinent
=
((
BasinNetwork
S
WithContinent
)
pilot
.
getAquaticWorld
().
getEnvironment
()).
getMapContinent
();
mapContinent
=
((
RIO
BasinNetworkWithContinent
)
pilot
.
getAquaticWorld
().
getEnvironment
()).
getMapContinent
();
for
(
Path2D
.
Double
path
:
mapContinent
.
values
())
{
minX
=
Math
.
min
(
minX
,
path
.
getBounds2D
().
getMinX
());
maxX
=
Math
.
max
(
maxX
,
path
.
getBounds2D
().
getMaxX
());
...
...
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