Regular Polygon Tool

Activate the tool, then select two existing points or click two distinct positions in the Graphics View to specify one side, then enter the number n of vertices of the polygon in the appearing input box to create a regular polygon with n vertices (including the previously specified points).

See also the Polygon command.