equal
deleted
inserted
replaced
252 ) { |
252 ) { |
253 for is in 0..self.islands.len() { |
253 for is in 0..self.islands.len() { |
254 let mut i = 0; |
254 let mut i = 0; |
255 while i < self.islands[is].edges_count() { |
255 while i < self.islands[is].edges_count() { |
256 let segment = self.islands[is].get_edge(i); |
256 let segment = self.islands[is].get_edge(i); |
257 if let Some(new_point) = self.divide_edge(segment, distance_divisor, distance_limiting_factor, random_numbers) |
257 if let Some(new_point) = self.divide_edge( |
258 { |
258 segment, |
|
259 distance_divisor, |
|
260 distance_limiting_factor, |
|
261 random_numbers, |
|
262 ) { |
259 self.islands[is].split_edge(i, new_point); |
263 self.islands[is].split_edge(i, new_point); |
260 i += 2; |
264 i += 2; |
261 } else { |
265 } else { |
262 i += 1; |
266 i += 1; |
263 } |
267 } |