openframeworks/openFrameworks — pull request #1284 by bakercp (2012-05-29 20:10:14+00:00)
Title: ofRectangle and ofPolyline: Added additional utility methods, setters, getters, etc.

In ofRectangle, I added a bunch of utility methods to help with typographic layout.

There is one CRITICAL change with ofRectangle's operator+. Previously, the +operator preformed a translate operation. This is better implemented via a call to translate(x,y) in order to be consistent with other platforms and ofPath, etc.

I also did some code cleanup, adjusted const ordering for consistency with other oF classes..

In ofPolyline, I made the getBoundingBox() method const to allow it to play more nicely with ofRectangle.