So I have a program that solves a system of linear equations, but that is not relevant. So what happens is that my program pass two linear equations in the form of: y = mx +b. I
You also need to consider how to map from physical (x, y) coordinates to screen (u, v) coordinates.
Transforming from Ax + By = C is mere high school algebra: