Rectangle
Rectangle[{xmin,ymin},{xmax,ymax}]
represents an axis-aligned filled rectangle from {xmin,ymin} to {xmax,ymax}.
Rectangle[{xmin,ymin}]
corresponds to a unit square with its bottom-left corner at {xmin,ymin}.
Details and Options
- Rectangle can be used as a geometric region and a graphics primitive.
- Rectangle represents the region .
- Rectangle[] is equivalent to Rectangle[{0,0}]. »
- Rectangle can be used in Graphics.
- In graphics, the points {xi,yi} can be Scaled, Offset, ImageScaled, and Dynamic expressions.
- The option RoundingRadius->r can be used to specify rounded corners rendered using circles of radius r.
- Graphics rendering is affected by directives such as FaceForm, EdgeForm and color.
- CanonicalizePolygon can be used to convert a rectangle to an explicit Polygon object.
Examples
open allclose allBasic Examples (5)
Scope (17)
Graphics (7)
Specification (3)
Styling (1)
Coordinates (3)
Regions (10)
Get conditions for point membership:
Integrate over a rectangle:
Applications (6)
The trajectory of the square wheel:
A Rectangle with equal side lengths is a square:
Maximize the area of a rectangle with a fixed perimeter:
Properties & Relations (9)
Use Rotate to get all possible rectangles:
Rectangle is a special case of Cuboid:
Rectangle is a special case of Parallelogram:
Rectangle is a special case of Polygon:
Rectangle is the union of two Triangle objects:
ImplicitRegion can represent any Rectangle region:
ParametricRegion can represent any Rectangle region:
MeshRegion can represent any Rectangle region:
BoundaryMeshRegion can represent any Rectangle region:
Possible Issues (1)
RoundingRadius only affects Graphics:
Text
Wolfram Research (1988), Rectangle, Wolfram Language function, https://reference.wolfram.com/language/ref/Rectangle.html (updated 2019).
CMS
Wolfram Language. 1988. "Rectangle." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Rectangle.html.
APA
Wolfram Language. (1988). Rectangle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Rectangle.html