Added new utility methods for line-line and line-poly intersections