calculate intersections of track with gates