A little collision engine (line intersection)