title: How to draw polygons with CGPath?
body: <p>I have been reading thru the documentation however it is not immediatly clear to me how to draw a polygon using CGPath. All I need to do is to draw CGPath around something like this:</p>
  
  <pre><code>__
  \  \ 
   \  \
    \__\
  </code></pre>
  
  <p>Could anyone please provide an snippet on how to do this?</p>
  
  <p>Additionally I assume CGPathContainsPoint will help me determine if a point is inside such path?, or does the path have to be a solid drawing</p>
  
  <p>Also how can i move the cgpath around? Is this as easy as changing something like the origin just like in cgrect?</p>
  
  <p>Thank you.</p>
  
  <p>-Oscar</p>