Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
bbadffa3
Commit
bbadffa3
authored
Jun 06, 2021
by
Luning Yang
Browse files
Update voisinage.cpp
parent
c0eff35b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/voisinage.cpp
View file @
bbadffa3
...
...
@@ -212,7 +212,7 @@ void RegleVoisinageArbitraire::calculVoisinage(Voisinage &v, const Reseau& r) {
unsigned
int
hauteur
=
r
.
getHauteur
();
unsigned
int
largeur
=
r
.
getLargeur
();
while
(
nb
=
0
,
nb
<
coordonnees
.
size
()
,
nb
++
){
for
(
int
nb
=
0
;
nb
<
coordonnees
.
size
()
;
nb
++
){
v
.
voisinage
[
nb
]
=
&
r
.
getReseau
()[
abs
-
co
[
nb
].
getx
()]
[
ord
-
co
[
nb
].
gety
()];
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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