See section 12.10.1 for hexagons in the plane.
The hexagon command takes as arguments three points, A, B and P.
hexagon returns and draws a regular hexagon.
The first two points A and B are vertices of the
hexagon, the third point P determines the plane and
orientation of the rectangle.
Input:
then:
Output:
hexagon takes four optional arguments,
which are variables assigned to the unnamed vertices.
Input:
then:
Output: