Intersection of lines + segment&point modify + tests