rectangle#
Draw a centered, axis-aligned rectangle.
Available in: math cells.
Syntax#
rectangle(center, width, height)
Arguments and behavior#
The center is a two-element array such as [0, 0]. The width and height are measured in world units. Use the rotation style to turn the rectangle.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
plot(rectangle([0, 0], 4, 2))Interactive examples could not load. You can still copy the expressions.
Expected result: plot.