title: Algorithm for distributing/aligning multi selected shapes vertically or horizontally at equal distance
body: <p>I need to write logic to distribute or align multi selected shapes horizontally or vertically with equal spaces between the selected shapes/objects.</p>
  
  <p>In PowerPoint 2010 we have option "Distribute horizonatlly" and "Distribute vertically". <a href="https://www.indezine.com/products/powerpoint/learn/shapes/distribute-shape-in-ppt2010.html" rel="nofollow noreferrer">Please refer this link for clarification</a> Similar functionality I have to implement in my application.</p>
  
  <p>Is there any algorithm already available to meet my requirement?</p>