it is a mathematical formula that you need. First you need to put the lines into slope intercept form (y=mx+b)
lets say a simple square
p1(0,0)
p2(0,4)
p3(4,4)
p4(4,0)
and we draw lines from p1 to p3 and from p2 to p4
slope(m) = rise/run so the slope of the line from p1 to p3 is 1 rise = 4 run = 4
and 2 to 4 is -1 rise = -4 run = 4
now we have formulas for the lines
y = x + 0
y = -x + 4
we know the y coordinates will be the same so we can:
x+0 = -x+4
solve for x and we get 2x = 4 or x = 2
2 is the x intercept of the 2 lines
substitute 2 into an original equation
y = 2 + 0
y = -2 +4
either one give interseckiton of (2,2)
Matt
Sorry if this was already posted, i was away from my desk for a bit
Matt