hexagon#
Draw a centered regular hexagon.
Available in: math cells.
Syntax#
hexagon(center, radius)
Arguments and behavior#
The center is a two-element array and the radius is the circumradius. This is a convenience spelling of regularPolygon(center, 6, radius).
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
plot(hexagon([0, 0], 2))Interactive examples could not load. You can still copy the expressions.
Expected result: plot.