         return out;
     }
 
+
+    /**
+     * Rounds each coordinate of a rectangle to the next integer toward its
+     * center.  The result is the largest rectangle with integral coordinates
+     * that can fit entirely within the input rectangle.
+     *
+     * @param rect    The rectangle-like object to round.
+     * @param out     An optional instance to store the result in.  If not
+     *                provided, a new Rectangle is created.
+     *
+     * @return  The object containing the rectangle with integral coordinates.
+     */
     public static function roundIn(
         rect:Object, out:Object = null):Object
     {

        return out;
    }

    public static function transform(
        rect:Object,
        xFactor:Number, yFactor:Number,

import flash.geom.Rectangle;


/**
 * Utility functions for manipulating rectangle-like objects, being any object
 * that has numeric x, y, width and height properties.  DisplayObjects can be
 * used, with the assumption that their registration points are in the top-left
 * corner, and their width and height values are reliable.
 */
public class RectUtil
{
    /**
     * Multiplies each coordinate in a rectangle by a scalar value.
     *
     * @param rect    The rectangle-like object to scale.
     * @param factor  The number to multiply by.
     * @param out     An optional instance to store the result in.  If not
     *                provided, a new Rectangle is created.
     *
     * @return  The object containing the multiplied rectangle.
     */
    public static function multiply(
        rect:Object, factor:Number, out:Object = null):Object
    {
