E
E
EiEich2019-05-22 22:41:52
Canvas
EiEich, 2019-05-22 22:41:52

How to make an infinitely long line from two points?

There are two points. A line is drawn on them on the coordinate system.
You need to make sure that these lines turn into straight lines. Tobish, lines without beginning and end, but to pass through these points.
5ce5a5c3efac6673178354.png
Here is a picture, there are 3 lines. They need to overlap with each other.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Interface, 2019-05-22
@EiEich

1) get the equation of a straight line by two points (it’s easy to google), how to do it can be found here www.math.by/geometry/eqline.html
2) substitute the coordinates of the canvas borders into the equation - you get points lying simultaneously on the borders and on the straight lines
3) connect them with segments

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question