From 002d409db8012f0fcf5a3c7ac7decebae4e9e8f1 Mon Sep 17 00:00:00 2001 From: Corwin Date: Sun, 9 Oct 2022 00:56:34 +0100 Subject: [PATCH] this is not valid because we don't track the lower right entry for rotation and translation this remains as 1, but it should change for scaling --- agb/src/display/affine.rs | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/agb/src/display/affine.rs b/agb/src/display/affine.rs index 53d128d7..4145d0a9 100644 --- a/agb/src/display/affine.rs +++ b/agb/src/display/affine.rs @@ -269,25 +269,25 @@ impl Mul for AffineMatrix { } } -impl Mul> for AffineMatrix { - type Output = Self; - fn mul(self, rhs: Num) -> Self::Output { - self * AffineMatrix { - a: rhs, - b: 0.into(), - c: 0.into(), - d: rhs, - x: 0.into(), - y: 0.into(), - } - } -} +// impl Mul> for AffineMatrix { +// type Output = Self; +// fn mul(self, rhs: Num) -> Self::Output { +// self * AffineMatrix { +// a: rhs, +// b: 0.into(), +// c: 0.into(), +// d: rhs, +// x: 0.into(), +// y: 0.into(), +// } +// } +// } -impl MulAssign> for AffineMatrix { - fn mul_assign(&mut self, rhs: Num) { - *self = *self * rhs; - } -} +// impl MulAssign> for AffineMatrix { +// fn mul_assign(&mut self, rhs: Num) { +// *self = *self * rhs; +// } +// } impl MulAssign for AffineMatrix { fn mul_assign(&mut self, rhs: Self) {