         m.translate(-transformX, -transformY);
         m.scale(scaleX, scaleY);
         if (rotation != 0) 
-            m.rotate(rotationInRadians(rotation));
+            m.rotate(rotation / 180 * Math.PI);
         m.translate(transformX + x, transformY + y);
         return m;
     }

	    return pt1;
	}

		
	/**
	 *  @param bounds width and height to be transformed.
	 *  @param matrix The transfomration matrix. 

	 */
	public static function isDeltaIdentity(matrix:Matrix):Boolean
	{
	    if( matrix.a == 1 && matrix.d == 1 &&
	    	matrix.b == 0 && matrix.c == 0)
            return true;
