Fixed segment intersection once and for all: