rtiow: fixed width formatting when printing Vec3.
This commit is contained in:
parent
eea5c7c61e
commit
4e62975d56
@ -102,7 +102,7 @@ impl From<[f32; 3]> for Vec3 {
|
||||
|
||||
impl fmt::Display for Vec3 {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user