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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here