Offset | Var | Contents |
---|---|---|
0 | a | X multiplier, for new x |
4 | b | X multiplier, for new y |
8 | c | Y multiplier, for new x |
12 | d | Y multiplier, for new y |
16 | e | X translation, in draw units |
20 | f | Y translation, in draw units |
The new co-ordinates are calculated using the following formulas:
new x = ax + cy + e
new y = bx + dy + f
Or in matrix form:
a | b | 0 |
c | d | 0 |
e | f | 1 |