Drawing an arrowhead
Drawing an arrowhead
- Subject: Drawing an arrowhead
- From: Tobias Haughton <email@hidden>
- Date: Mon, 25 Mar 2002 17:59:41 +1100
The app that I am currently working on draws a NSBezierPath between two
objects, the path can be on any angle. The problem I'm having is that I
want to draw two lines coming off the end of the bezierPath at a 45
degree angle, in order to form an arrowhead. I thought that I could use
NSAffineTransform's rotateByDegrees: and transformBezierPath: methods to
do this but it doesn't seem possible. I guess I need to use some
geometry equation but I'm clueless when it comes to geometry. Has
anybody dealt with this before or have any advice? It would be greatly
appreciated.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.