mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
add comment on what the matrix represents
This commit is contained in:
parent
6927f84597
commit
c33f99aaea
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue