The example above is a pentagon but a polygon could be created to display a triangle, hexagon ... but given the frequency of its use, most vector graphic file formats support a specific rectangle ...
In the most common vector graphic file format (SVG), the default ... y3” The above example would create a triangle by connecting lines between the three sets of co-ordinates.