collision detection with point and line or segment | ScratchStats