cinder/Cinder — pull request #470 by araid (2014-07-16 15:41:53+00:00)
Title: add Aspect Fill to Rect

`RectT::getCenteredFill( const RectT &other, bool contract )` is a really simple addition to the Rectangle class. It's the counterpart of `getCenteredFit()`, a feature I've needed in a lot of projects.

Centered fill is the [CSS equivalent](http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-size&preval=cover) of `background-size:cover`, with centered fit being `background-size:contain`.

You can test how it works with this simple app https://gist.github.com/araid/c6a59642e511cf3e0112