         return out;
     }
 
-    public static function setArea(
-        rect:Rectangle, area:Number, out:Rectangle = null):Rectangle
+    public static function scaleToArea(
+        rect:Object, area:Number, out:Object = null):Object
     {
         if (!out) out = new Rectangle();
         var areaRatio:Number = Math.sqrt(area / (rect.width * rect.height));



    public static function roundOut(
        rect:Rectangle, out:Rectangle = null):Rectangle
    {
        if (!out) out = new Rectangle();


public class RectUtil
{
    public static function multiply(
        rect:Object, factor:Number, out:Object = null):Object
    {
        if (!out) out = new Rectangle();
        out.x = rect.x * factor;
