Code: Select all
oooooo
oooooo
----->
<-----
so the order is always 1 horizontal line first, then continue on second line.. etc...
it would be best if it chose the order depending on the size of the rectangle:
Code: Select all
if(width > height){
vertical_order();
} else {
horizontal_order(); // default atm
}