Suppose two line segments intersect. The two end- points for the first line segment are (x1, y1) and (x2, y2) and for the second line segment are (x3, y3) and (x4, y5). Write the following function...


Suppose two line segments intersect. The two end- points for the first line segment are (x1, y1) and (x2, y2) and for the second line segment are (x3, y3) and (x4, y5). Write the following function that returns the intersecting point if the two lines intersect:


void intersectPoint(double x1, double y1, double x2, double y2,


   double x3, double y3, double x4, double y4,

   double& x, double& y, bool& isIntersecting)
Write a program that prompts the user to enter these four endpoints and displays the intersecting point.



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here