title: How to get average distance between 3 points
body: <p>I found a programming question to calculate average distance between 3 known points.</p>
  
  <p>You have given three coordinates points (x1,y1), (x2,y2) and (x3,y3) and I have to calculate average distance among these points.</p>
  
  <p>If any body knows formula please let me know I can write in coding.</p>
  
  <p>My approach:- 
  I can get distance between each coordinate from the distance formula but how will I calculate average distance, don't know.</p>
  
  <p>distance1  =  point between (x1,y1) and (x2,y2)</p>
  
  <p>distance2 = point between (x1,y1) and (x3,y3)</p>
  
  <p>distnace3  = point between (x2,y2) and (x3,y3)</p>
  
  <p>Reference from</p>
  
  <p><a href="http://www.teacherschoice.com.au/maths_library/trigonometry/triangle_given_3_points.htm" rel="nofollow">http://www.teacherschoice.com.au/maths_library/trigonometry/triangle_given_3_points.htm</a></p>