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
Types
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.
Returns a position in the bounding box for a parameterized uv value between (0.0
, 0.0
) and (1.0
, 1.0
) where (0.5
, 0.5
) is the center of the bounding box.
Creates a new shape at the same position with the given dimension, scaled uniformly.
Creates a new shape at the same position with the given dimensions.
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.