The horizontal distance is the difference of x-coordinates: 6 - 4 = 2.
The vertical distance is the difference of y-coordinates: -1 - (-2) = 1.
The straight-line distance (d) can be found using the Pythagorean theorem, since the vertical and horizontal distances are at right angles to each other.
.. d² = 2² + 1² = 5
.. d = √5 ≈ 2.2
The distance UV is about 2.2.