Showing changes from revision #1 to #2:
Added | Removed | Changed
Rotation can be performed by using:
a = cos(angle)
b = sin(angle)
c = sin(angle)
d = cos(angle)
Scaling can be performed by using:
a = scale
b = 0
c = 0
d = scale
Translation can be performed by using:
e = x translation
f = y translation
So To to render a non-rotated 1:1 Draw file at (x,y)1 , the transformation matrix is:
1 << 16 | 0 | 0 |
0 | 1 << 16 | 0 |
256x | 256y | 1 |
And thus:
a = 1 << 16 | b = 0 |
c = 0 | d = 1 << 16 |
e = 256x | f = 256y |