transformation matrix for touchscreen rotations

=> Here’s a link to Transformation Matrix info

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

Navigation

=> index | tags

created: 2022-11-25

(re)generated: 2025-01-29

Proxy Information
Original URL
gemini://thatit.be/2022-11-25-13-23-59.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
460.075039 milliseconds
Gemini-to-HTML Time
0.338297 milliseconds

This content has been proxied by September (3851b).