The array will also contain additional path positions, and finally the goalPt.
You may specify confineToGrid as true, at which time the goalPt will be adjusted to either fall within a polygon area or snap to a grid line.