Run cargo fmt

Former-commit-id: c038eee51ee522fc170f7dcee94c533ad2708df2
This commit is contained in:
robojumper 2019-05-05 17:54:08 +02:00
parent 647d1dcc9c
commit b2c2d89447
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ impl<'a, V: ReadVol, F: RayUntil<V::Vox>> Ray<'a, V, F> {
match self.vol.get(ipos).map(|vox| (vox, (self.until)(vox))) {
Ok((vox, true)) => return (dist, Ok(Some(vox))),
Ok((_, false)) => {},
Ok((_, false)) => {}
Err(err) => return (dist, Err(err)),
}

View File

@ -58,10 +58,10 @@ impl Camera {
(d, Ok(Some(_))) => f32::min(d - 1.0, self.dist),
(_, Ok(None)) => self.dist,
(_, Err(_)) => self.dist,
}.max(0.0)
}
.max(0.0)
};
let view_mat = Mat4::<f32>::identity()
* Mat4::translation_3d(-Vec3::unit_z() * dist)
* Mat4::rotation_z(self.ori.z)