New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposed update to ofRectangle::scaleTo - now with more scaling modes. #1513
Commits on Aug 27, 2012
-
Updates to ofRectangle::ScaleIntoMe.
Now ofRectangle::ScaleToMe. More scaling options via ofRectScaleMode.
-
Commits on Aug 30, 2012
Commits on Aug 31, 2012
Commits on Sep 3, 2012
-
Merge branch 'develop' of git://github.com/openframeworks/openFramewo…
…rks into ofRectangle_Additions
Commits on Sep 5, 2012
-
-
Added alignment enums, both vert and horz. The alignment enum values …
…are based on Qt and could, if desired, be combined into a single bit-wise combined alignment flag.
-
- x/y are now references to an underlying ofPoint for easier ofPoint/ofVec manipulations of an ofRectangl. (addresses issue openframeworks#821 by @danomatika) - Added setters for x/y/width/height/position (vec) - Changed the variable names on translateXXX to dx/dy (delta x/y) - Added translateX, translateY - Added scaleWidth / scaleHeight for independent control. - changed scaleToMe to simply be scaleTo. + remove personal pronoun. + Scales itself, rather than returning the scaled version of another ofRectangle. - Added scaleTo functions that are more generic, using the new ofAspectRatioMode. + This allows more flexible scaling with alternate alignments. + Overridden functions provide easier access w/o changing defaults. - Added alignTo functions that now work with the new ofAlignHorz and ofAlignVert enums. + contain functions for aligning to other rects, points, and a single value, based on a the anchor. - Moved the overridden operators to the bottom of the implementation file / header. - Added getLeft()/getRight()/getTop()/getBottom(). + since our ofRectangle class supports negative width/height, these offer more intuitive interaction with known edges. - Added getHorzAnchor() / getVertAnchor() to get edges by using the new alignment enums. Throws errors if the alignment enums are invalid. - getPosition and getPositionRef added. - Moved getCenter() to live with the other getters.
-
Merge branch 'develop' of git://github.com/openframeworks/openFramewo…
…rks into ofRectangle_Additions
Commits on Sep 6, 2012
-
ofPoint getTopLeft() const; ofPoint getTopRight() const; ofPoint getBottomLeft() const; ofPoint getBottomRight() const;
-
Added `intersects()/inside()/growToInclude() functions for lines. Add…
…resses openframeworks#1568. To do much more with lines, we need a `ofLine` - or `ofLineSegment` to make returns easier. For instances, `ofLineSegment ofRectangle::getIntersection(const ofLineSegment& line);`
-
Commits on Sep 10, 2012
-
Merge branch 'develop' of git://github.com/openframeworks/openFramewo…
…rks into ofRectangle_Additions
Commits on Sep 13, 2012
-
Merge branch 'develop' of git://github.com/openframeworks/openFramewo…
…rks into ofRectangle_Additions
Commits on Sep 25, 2012
-
Merge branch 'develop' of git://github.com/openframeworks/openFramewo…
…rks into ofRectangle_Additions
Commits on Sep 26, 2012
Commits on Oct 1, 2012
-
-
Removing all auto-standardization. Rectangle origin x/y and the signs…
… of the dimensions width/height will never be implicitly modified during member method execution, with the single exception of the explicit `standardize` methods.
-
-
-