Revision: 47395
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 7, 2011 17:37 by hejaaa
Initial Code
private function rotateAroundInternalPoint(m:Matrix, x:Number, y:Number, angleDegrees:Number):void { var p:Point = m.transformPoint(new Point(x, y)); rotateAroundExternalPoint(m, p.x, p.y, angleDegrees); } private function rotateAroundExternalPoint(m:Matrix, x:Number, y:Number, angleDegrees:Number):void { m.translate(-x, -y); m.rotate(angleDegrees * (Math.PI / 180)); m.translate(x, y); }
Initial URL
http://www.joelconnett.com/flex-rotation-around-a-point.html
Initial Description
Initial Title
Rotation around point
Initial Tags
Initial Language
ActionScript 3