Use the dist() function to calculate the distance between two points in the screen. Why would you want to do that? Well, you can use the distanceto know if two circles are overlapping. If the distance between the centers of the circles is less than the radius of the first circle plus the radius of the second circle, then they are touching.
The radius of a circle is the distance between the center of the circle and any point in the circle itself.