title: netlogo - radial direction of the turtle
body: <p>I have an ellipse shape. (created having vertical direction)
  I want to place several such shapes on the circle contour
  They should be placed having same distance one from another</p>
  
  <pre><code>;x,y - circle center coordinates
  ;r - radius
  to draw-ellipses [x y r elNum ]
    if  elNum &gt; 0 [
      let theta 0
      let delta 360 / elNum
      loop[
        if  elNum = 0 [ stop ]
        crt 1 [
          setxy (x + r * cos theta) (y + r * sin theta)
          set shape "ellipse"
          set heading 90 + theta
          set size 7
        ]
        set theta  (theta + delta)
        set elNum (elNum - 1)
      ]
    ]
  end
  </code></pre>
  
  <p>The ellipse shapes ate placed correctly but their direction is wrong. I want the ellipses to have radial direction. I.e to be the continues of the radius to the point, where shape is placed. but directions are not good. 
  Only for 0 and 180 degrees the directions are ok.</p>
  
  <p>Some advices what am I missing?</p>