diff --git a/src/integer.rs b/src/integer.rs index 97e6428..59316b8 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -871,3 +871,13 @@ impl TryFrom for Planar64Affine3{ }) } } +impl std::fmt::Display for Planar64Affine3{ + fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{ + write!(f,"translation: {:.3},{:.3},{:.3}\nmatrix3:\n{:.3},{:.3},{:.3}\n{:.3},{:.3},{:.3}\n{:.3},{:.3},{:.3}", + Into::::into(self.translation.x()),Into::::into(self.translation.y()),Into::::into(self.translation.z()), + Into::::into(self.matrix3.x_axis.x()),Into::::into(self.matrix3.x_axis.y()),Into::::into(self.matrix3.x_axis.z()), + Into::::into(self.matrix3.y_axis.x()),Into::::into(self.matrix3.y_axis.y()),Into::::into(self.matrix3.y_axis.z()), + Into::::into(self.matrix3.z_axis.x()),Into::::into(self.matrix3.z_axis.y()),Into::::into(self.matrix3.z_axis.z()), + ) + } +} \ No newline at end of file