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

Examples

open allclose all

Basic Examples  (5)

A unit square:

In[1]:=
Click for copyable input
Out[1]=

Two squares:

In[1]:=
Click for copyable input
Out[1]=

Various rectangles:

In[1]:=
Click for copyable input
Out[1]=

Differently styled rectangles:

In[1]:=
Click for copyable input
Out[1]=

Area and centroid:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (17)

Options  (1)

Applications  (6)

Properties & Relations  (9)

Possible Issues  (1)

Neat Examples  (3)

See Also

Polygon  Raster  Cuboid  Inset  GraphicsGrid  Rotate  BoundingRegion

Introduced in 1988
(1.0)
| Updated in 2014
(10.0)