equal
deleted
inserted
replaced
118 for (other_index, other) in bin.dynamic_entries.iter().enumerate().skip(index + 1) { |
118 for (other_index, other) in bin.dynamic_entries.iter().enumerate().skip(index + 1) { |
119 if bounds.intersects(other) && bounds != other { |
119 if bounds.intersects(other) && bounds != other { |
120 collisions.push( |
120 collisions.push( |
121 bin.dynamic_refs[index], |
121 bin.dynamic_refs[index], |
122 Some(bin.dynamic_refs[other_index]), |
122 Some(bin.dynamic_refs[other_index]), |
123 &bounds.center, |
123 &((bounds.center + other.center) / 2), |
124 ) |
124 ) |
125 } |
125 } |
126 } |
126 } |
127 |
127 |
128 for (other_index, other) in bin.static_entries.iter().enumerate() { |
128 for (other_index, other) in bin.static_entries.iter().enumerate() { |
129 if bounds.intersects(other) { |
129 if bounds.intersects(other) { |
130 collisions.push( |
130 collisions.push( |
131 bin.dynamic_refs[index], |
131 bin.dynamic_refs[index], |
132 Some(bin.static_refs[other_index]), |
132 Some(bin.static_refs[other_index]), |
133 &bounds.center, |
133 &((bounds.center + other.center) / 2), |
134 ) |
134 ) |
135 } |
135 } |
136 } |
136 } |
137 } |
137 } |
138 } |
138 } |