Consider you have a line with start point (x1,y1) and end point (x2,y2).
In order to draw an arrow cap to the line (in objective-c), I need to find the points of the arrow (x3,y3,x4,y4) given the angle of the arrow (45 degrees), and the length of the arrow tips (h).
So given x1,y1,x2,y2,h,alpha whats x3,y3,x4,y4?
Added an image explaining the question.
If the answer can be in objective-c (using UIBezierpath and CGPoint) it will be much appreciated.
Thanks!
I hope this helps 🙂