rtiow: fixed width formatting when printing Vec3.

This commit is contained in:
Bill Thiede 2023-02-02 19:46:32 -08:00
parent eea5c7c61e
commit 4e62975d56

View File

@ -102,7 +102,7 @@ impl From<[f32; 3]> for Vec3 {
impl fmt::Display for Vec3 { impl fmt::Display for Vec3 {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{} {} {}", self.x, self.y, self.z) write!(f, "{:>6.2} {:>6.2} {:>6.2}", self.x, self.y, self.z)
} }
} }