Question: I need this in C programming. no other way, I'm also using visual studio to run the program. Problem 3: Complete the following function that

I need this in C programming. no other way, I'm also using visual studio to run the program.
Problem 3: Complete the following function that assigns to its ix and iy reference parameters the components of the point of intersection of two lines. The first line passes through the points (x1 , y1) and (x2, y2); the second line passes through the points (x3, y3) and (x4, y4). If the two lines do not intersect in a single INFINITY to both ix and iy. INFINITY is a double-precision floating-point constant defined in header file. It represents a very large number that you effectively can treat as infinity. point (that is, they are parallel to each other), the function should assign the cmath // Computes the point of intersection of two lines // The first line passes through the points // (x1, yl) and (x2, y2). The second line passes through the // points (x3, y3) and (x4, y4). The function assigns / (ix, iy) as the intersection point // If the two lines do not intersect in a singal point, the function / computes (INFINITY, INFINITY) void intersection (double x1, double yl, double x2, double y2, double x3, double y3, double x4, double y4, double* ix, double. iy) { // Add your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
