Rectangle
Creates a new axis-aligned Rectangle.
Rectangle is only a data structure with no visible representation, although it can be drawn by calling org.openrndr.draw.Drawer.rectangle.
Also see IntRectangle.
Constructors
Functions
Creates a Rectangle mirrored around a vertical axis. u specifies the axis position. Defaults to 0.5 (center). Left edge = 0.0, right edge = 1.0. Frequently used for mirroring images or video.
Creates a Rectangle mirrored around a horizontal axis. v specifies the axis position. Defaults to 0.5 (center). Top edge = 0.0, bottom edge = 1.0. Frequently used for mirroring images or video.
Returns a horizontal LineSegment specified by v. Top edge v = 0.0, bottom edge v = 1.0.
Tests if the areas of two rectangles intersect.
Creates a new Rectangle with sides offset both horizontally and vertically by specified amount.
Casts to IntRectangle.
Returns a vertical LineSegment specified by u. Left edge u = 0.0, right edge u = 1.0.
Properties
Returns ShapeContour representation of the Rectangle.
The dimensions of the Rectangle.