title: Drawing lines at increasing angles
body: <p>I'm not very good at math or geometry, but I want to draw some line segments at increasing angles. What I want to draw is something like when you hold your hand up and spread your fingers apart: lines that start at a common point and expand out at angles that have an equal difference between them.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>len = 300;
  angle = 10;
  
  for (i = 0; i &lt;= 5; ++i) {
      endPointX = 50 + len * Math.cos(angle);
      endPointY = 50 + len * Math.tan(angle);
      draw.Line(50, 50, endPointX, endPointY);
      angle += 10;
  }
  </code></pre>
  
  <p>However, that's totally wrong and produces something like this</p>
  
  <p><a href="http://i.stack.imgur.com/taX40.png" rel="nofollow">http://i.stack.imgur.com/taX40.png</a></p>
  
  <p>But I want something like this (bad mspaint, sorry):</p>
  
  <p><a href="http://i.stack.imgur.com/8xfpp.png" rel="nofollow">http://i.stack.imgur.com/8xfpp.png</a></p>
  
  <p>What's the right math for this?</p>