First commit of code.
Changed code to work directly with passed vertices.
Anti-clockwise polygons also supported.
Changed method of extending lines.
Allowed for different X and Y cell sizes.