title: How to rotate a semi-circle made of points with javascript/jquery
body: <p>More of a math questions than javascript... I have this code to create a semi-circle out of smaller circles but I am not sure how to rotate it so that the semi circle starts at the top of the circle and not the side (rotate it 45º to the left).</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var items = 9;
  
  for (var i = 0; i &lt; items; i++) {
  
    var x = 200 + 50 * Math.cos(1.1 * Math.PI * i / items);
    var y = 100 + 50 * Math.sin(1.1 * Math.PI * i / items);
  
    $("body").append("&lt;div class='point' style='left:" + x + "px;top:" + y + "px'&gt;&lt;/div&gt;");
  
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    border: 1px solid black;
    position: absolute;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/ACuRX.png" rel="nofollow noreferrer">Current Output</a>,
  <a href="https://i.stack.imgur.com/QySG4.png" rel="nofollow noreferrer">Desired Output</a></p>
  
  <p>Thanks!</p>