Use relative error for intersections. Fixes #1075.