Second algorithm doesn't work properly, when point and next point are
outside clipping polygon.