From c33f99aaea280bc84c7bb8143353de2983884f92 Mon Sep 17 00:00:00 2001 From: Corwin Date: Sat, 8 Oct 2022 23:30:29 +0100 Subject: [PATCH] add comment on what the matrix represents --- agb/src/display/affine.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agb/src/display/affine.rs b/agb/src/display/affine.rs index 31b9e46a..8b7877cd 100644 --- a/agb/src/display/affine.rs +++ b/agb/src/display/affine.rs @@ -66,6 +66,9 @@ impl AffineMatrix { let cos = angle.cos().change_base(); let sin = angle.sin().change_base(); + // This might look backwards, but the gba does texture mapping, ie a + // point in screen base is transformed using the matrix to graphics + // space rather than how you might conventionally think of it. AffineMatrix { a: cos, b: sin,