Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to pointsDistance. The calculation is:
Ex: For points (1.0, 2.0) and (1.0, 5.0), pointsDistance is 3.0.
enter image description here
pointsDistance = sqrt ((x2-x1) * 2.0 +(y2-y1) * 2.0);