Join functions that check if start or end point is on segment