Rectangle scaling functions.