Given the points **THE**(x_{THE}, y_{THE}) and **B**(x_{B}, y_{B}) and being **d _{AB}** the distance between them we have:

Applying the Pythagorean theorem to the right triangle ABC, comes:

As an example, let's determine the distance between the points **THE**(1, -1) and **B**(4, -5):