reimplement default

This commit is contained in:
Corwin 2022-10-09 00:50:41 +01:00
parent c02454ef16
commit b43408e6e1

View file

@ -152,6 +152,12 @@ impl AffineMatrix {
}
}
impl Default for AffineMatrix {
fn default() -> Self {
AffineMatrix::identity()
}
}
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
#[repr(C, packed(4))]
/// An affine matrix that can be used in affine backgrounds