It doesn't really make a lot of sense to draw polygons with two points. At least in the past, the behavior when doing that was inconsistent between platforms anyway. If you just need a line, then it's better to make a skinny rectangle. Plus you get control over the line weight.