Update variable name

This commit is contained in:
Hanno Braun 2024-03-26 11:21:45 +01:00
parent 33803d3727
commit f18435dd67

View File

@ -8,9 +8,10 @@ impl super::BoundingVolume<2> for &Cycle {
let mut aabb: Option<Aabb<2>> = None;
for edge in cycle.half_edges() {
let new_aabb =
edge.aabb(geometry).expect("`Edge` can always compute AABB");
for half_edge in cycle.half_edges() {
let new_aabb = half_edge
.aabb(geometry)
.expect("`Edge` can always compute AABB");
aabb = Some(aabb.map_or(new_aabb, |aabb| aabb.merged(&new_aabb)));
}