I know how to calculate a total distance between 2 points. How can I extend this to calculate the distance between 3 points?
Here is my code to calculate the distance bet