make affine stuff public, there's no invariant we want to maintain

This commit is contained in:
Corwin 2024-08-17 15:40:02 +01:00 committed by Gwilym Inzani
parent 716147ebae
commit e1cc3d7773

View file

@ -91,12 +91,12 @@ type AffineMatrixElement = Num<i32, 8>;
/// An affine matrix stored in a way that is efficient for the GBA to perform /// An affine matrix stored in a way that is efficient for the GBA to perform
/// operations on. This implements multiplication. /// operations on. This implements multiplication.
pub struct AffineMatrix { pub struct AffineMatrix {
a: AffineMatrixElement, pub a: AffineMatrixElement,
b: AffineMatrixElement, pub b: AffineMatrixElement,
c: AffineMatrixElement, pub c: AffineMatrixElement,
d: AffineMatrixElement, pub d: AffineMatrixElement,
x: AffineMatrixElement, pub x: AffineMatrixElement,
y: AffineMatrixElement, pub y: AffineMatrixElement,
} }
#[derive(Debug, Clone, Copy, PartialEq, Eq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
@ -319,10 +319,10 @@ impl From<AffineMatrixBackground> for AffineMatrix {
#[repr(C, packed(4))] #[repr(C, packed(4))]
/// An affine matrix that can be used in affine objects /// An affine matrix that can be used in affine objects
pub struct AffineMatrixObject { pub struct AffineMatrixObject {
a: Num<i16, 8>, pub a: Num<i16, 8>,
b: Num<i16, 8>, pub b: Num<i16, 8>,
c: Num<i16, 8>, pub c: Num<i16, 8>,
d: Num<i16, 8>, pub d: Num<i16, 8>,
} }
impl Default for AffineMatrixObject { impl Default for AffineMatrixObject {