Click-hold-drag the two dots. Slide < show >? on and of to see and not see the triangle. This will give you an idea of how to calculate distance between two objects.
Giving credit to @Noroz for the distance formula. UPDATE: Added hypotenuse square to give the full Pythagorean Theorem.