Add length variable to polygon and create intersection interface
Rename variable passed to closestPoint