title: get info about a CGpath, UIBezierPath?
body: <p>I have a series of paths, mostly straight lines, or almost straight lines.
  I'd like to categorize them as horizontal, vertical, diagonal, and also the direction in which they are drawn (up->down, down->up, left->right, right->left etc). some of the lines are L shaped, and I'd like that info too.</p>
  
  <p>this can probably be done if i knew the endpoints of the path, but i don't know how to extract that info. Also, I need more than that for L shaped lines since the endpoints would indicate a diagonal. I've looked on all the reference pages, and can't find that sort of info.
  so, if you know that, or another way to get the information i'm looking for ... thanks</p>