kvapil segment intersection