# Determine the intersection Point of the two Diagonals in a quadrilateral

1 view (last 30 days)

Show older comments

Hey people,

is there an easy way of dermining the intersection points of two diagonals in a quadriliteral??

Doing it by hand is quite hard since there are many special cases to consider. maybe there is already a function that helps solving the problem?

With best regards, John

##### 1 Comment

Ryan Cho
on 20 Dec 2017

### Accepted Answer

Image Analyst
on 17 May 2013

Calculate the equation of the two lines and set them equal, and solve for x, and then plug in x into either equation and get y. Just basic math

m1*x+b1 = m2*x+b2

and so on to solve for x. m is just the slope deltaY/deltaX you get from using your two diagonal points. You can use

coeffs = polyfit(x,y,1); % coeffs(1) = m, coeffs(2) = b

if you want.

##### 4 Comments

Image Analyst
on 17 May 2013

### More Answers (1)

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!