title: How to calculate the points between two given points and given distance?
body: <p>I have point <code>A (35.163 , 128.001)</code> and point <code>B (36.573 , 128.707)</code></p>
  
  <p>I need to calculate the points lies within point A and point B</p>
  
  <p>using the standard distance formula between 2 points, I found <code>D = 266.3</code></p>
  
  <p>each of the points lies within the line AB (the black point p1, p2, ... p8) are separated with equal distance of <code>d = D / 8 = 33.3</code></p>
  
  <p>How could I calculate the X and Y for p1 , p2, ... p8?</p>
  
  <p>example of Java or C# language are welcomed</p>
  
  <p>or just point me a formula or method will do.</p>
  
  <p>Thank you.</p>
  
  <p>**The above calculation is actually used to calculate the dummy point for shaded level in my map and working for shaded area interpolation purpose* </p>
  
  <p><img src="https://i.stack.imgur.com/e35hy.jpg" alt="find the X and Y for all the points between A and B"></p>