But a lower bound on the scaled calculated using the natural width/height of the image
Its the bigger of:
The scale that would be 200px wide, to ensure theres enough room for all buttons
The scale that would make it 100px tall, to ensure theres enough room for the buttons without said buttons obscuring half the image
Made the button(s) ready to be positioned
Added in the maths for the matrix to do the angling
Added in angle of rotation
Origin of rotation is not the gesture centre (yet) but the top left corner
The image now rotates about the transform gesture origin
FIXME: Image jumps when starting to transform
Fixed the bug from the previous commit
The image now rotates correctly about the gesture centre without jumping when it starts
Removed console logging