Micron Document
transformation matrix for touchscreen rotations


It makes a lot more sense represented two dimensionally.

Identity:

⎡ 1 0 0 ⎤
⎜ 0 1 0 ⎥
⎣ 0 0 1 ⎦

Right rotation:

⎡ 0 1 0 ⎤
⎜ -1 0 1 ⎥
⎣ 0 0 1 ⎦

Left rotation:

⎡ 0 -1 1 ⎤
⎜ 1 0 0 ⎥
⎣ 0 0 1 ⎦

This is how I came up with values for my rotate script.

Tags: xorg

Tags
Navigation



created: 2022-11-25

(re)generated: 2026-07-17