cinder/Cinder — pull request #500 by araid (2014-09-09 22:45:00+00:00)
Title: add Aspect Fill to Rect

Submitting the PR again as the previous one was targeted to the dev branch.

`getCenteredFill( const RectT &other, bool contract )` is the counterpart of `getCenteredFit()`, a basic 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