R
R
Robert2019-04-16 18:39:29
Python
Robert, 2019-04-16 18:39:29

Distance between two points?

Good day! The principle of operation of the task is to load an image, set two points on it, and the program displays the distance between them.
What libraries are there for such purposes and in which direction to dig? T.K. I have not encountered such tasks before and have not gone far beyond the web.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Developer, 2019-04-16
@samodum

Library - pyTwoPointsDistance
PS You are already fucking lazy or stupid. For one simplest formula, you:
- cut a question on a toaster
- demand a library for the sake of a school formula.
Were you all banned at school? Or is it the education of the 2000s in Russia?

G
GreatRash, 2019-04-17
@GreatRash

A <5, 7>
B <10, 8>
Вектор V = <B.x - A.x, B.y - A.y>
Длина вектора V = sqrt(V.x * V.x + V.y * V.y)
Длина вектора V и есть расстояние между точками A и B

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question