Documentation: Transformation Matrix
Programmer’s Reference Manuals
» Part 8 – Non-kernel input/output
» The Font Manager
» SWI Calls
» Font_FindFont
» Font Identifier String
» Font Transformation Matrix
» Transformation Matrix
Transformation Matrix
| 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 |
Notes
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 |