Most shapes will make use of at least two coordinates, X and Y. In the most common vector graphic file format (SVG), the default starting position is in the top left-hand corner of the drawing area.
Rectangle is actually a type of polygon but given the frequency of its use, most vector graphic file formats support a specific rectangle object. Squares could be created using either the ...