Answer the question
In order to leave comments, you need to log in
How to correctly calculate the coordinates of a point?
Hello. I have been bad friends with mathematics since childhood, but then I had to draw on the canvas, difficulties arose.
I have a certain straight line, the selection area of the straight line is wider than it is, made for touch convenience. When I make a touch on a straight line, I should have a vertex (point) and I need to put this point on a straight line, regardless of what I touched a little to the left. The picture for clarity is below:
Tell me the solution, and if possible, point by point, so that I catch the essence, because I say that, alas, it’s tight with mathematics, I will be extremely
grateful.
From the original data, we get A(x1,y1); B(x2,y2) - straight line, C(x3,y3)
The output must be corrected C(x3, y3)
Answer the question
In order to leave comments, you need to log in
Solution in the forehead. You need to first obtain the equation of a straight line on a plane , and then the projection of a point onto a straight line on a plane . You can start googling. It's easy. Both moments have specific well-known formulas.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question