- if #stash == 4 then
- if doLinesIntersect(x1, y1, x2, y2, stash[4], stash[3], stash[2], stash[1]) then
- return true
+ if #cache.a == 2 then
+ if #cache.b == 2 then
+ if doLinesIntersect(x1,y1, x2,y2, cache.a[1],cache.a[2], cache.b[1],cache.b[2]) then
+ return true
+ end