Skip to content

Instantly share code, notes, and snippets.

@hexonaut
Created March 11, 2014 21:20
Show Gist options
  • Save hexonaut/9495343 to your computer and use it in GitHub Desktop.
Save hexonaut/9495343 to your computer and use it in GitHub Desktop.
R (Rotation) = [ cosA -sinA, sinA cosA ], S (Scale) = [ Sx 0, 0 Sy ]
M = RS
M11 = Sx*cosA
M21 = Sx*sinA
=> tanA = M21 / M11
=> A = arctan(M21 / M11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment