Skip to content

Instantly share code, notes, and snippets.

@aarongustafson
Created September 12, 2010 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarongustafson/576371 to your computer and use it in GitHub Desktop.
Save aarongustafson/576371 to your computer and use it in GitHub Desktop.
function getIERotationMatrix( degrees )
{
var radians = degrees * ( Math.PI * 2 / 360 );
console.log( 'progid:DXImageTransform.Microsoft.Matrix( M11=' +
Math.cos( radians ) + ', M12=' + (0-Math.sin( radians )) +
', M21=' + Math.sin( radians ) + ', M22=' + Math.cos( radians ) +
', SizingMethod="auto expand" )' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment