line intersection calculation | ScratchStats