Two points on line 1 are given as (x1, y1) and (x2, y2) and on line 2
Question:
Two points on line 1 are given as (x1, y1) and (x2, y2) and on line 2 as (x3, y3) and (x4, y4), as shown in Figure 3.8a?b.
The intersecting point of the two lines can be found by solving the following linear equation:
This linear equation can be solved using Cramer?s rule (see Programming Exercise 3.3). If the equation has no solutions, the two lines are parallel (Figure 3.8c).Write a program that prompts the user to enter four points and displays the intersecting point. Here are sample runs:
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Question Posted: