lib-flex-book-com-rubenswieringa-geom-SuperRectangle.ax (swf ) [ flash ] flex
Provides functionality for working with Rectangles. This class extends the RoundedRectangle class and thus has all of its functionality (and also the functionality of the Rectangle class, which RoundedRectangle extends). @author Ruben Swieringa ruben.swieringa@gmail.com www.rubenswieringa.com www.rubenswieringa.com/blog @version 1.0.0 edit 5b* * This class is a slightly stripped-down version of the original @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle class (the unfinished method getCornersInbetween() has been removed) Before modifying and/or redistributing this class, please contact Ruben Swieringa (ruben.swieringa@gmail.com). View code documentation at: http://www.rubenswieringa.com/code/as3/flex/Geom/docs/ *
Constructor.
Takes a Rectangle instance and returns it as a @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle with the same position, width, height, and (if applicable) corner-radius. @param rect Rectangle @return rect as a @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle.
Indicates on which side of this @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle a Point is. Note that if the Point is not on the @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle its border, -1 will be the return-value. @param point A coordinate. @see @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle#NONE @see @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle#TOP @see @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle#RIGHT @see @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle#BOTTOM @see @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle#LEFT @return An integer indicating on which side a given coordinate is. 0 stands for he top-side, 1 for right-side, etc. Use the constants of the @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle class for improved code-readability.
Returns an Array with Point instances indicating the corners of the @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle. The first index (0) is the top-left corner, the second (1) the top-right, etc. @return Array
Returns an Array with Point instances indicating the 4 sides of this @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle as Lines. @see Line @return Array
@copy @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle#getCorners() @see @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle#getCorners() @return Array
The center of the @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle.
Point representing the lower left corner of this @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle.
Point representing the upper right corner of this @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle.
The center of this @ax-lib-flex-book-com-rubenswieringa-geom-SuperRectangle instance.
(C) Æliens 18/6/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.