fix checking of segment intersection no more rounding needed.

This fixes #930.