add comment on what the matrix represents

This commit is contained in:
Corwin 2022-10-08 23:30:29 +01:00
parent 6927f84597
commit c33f99aaea

View file

@ -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,