• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Drawing an arrowhead
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Drawing an arrowhead
      • From: Thomas Lachand-Robert <email@hidden>
  • Prev by Date: Re: getting bundle ID (was 'getting the bundle name')
  • Next by Date: Re: Apple and Developers (was lots of different subjects)
  • Previous by thread: Re: getting bundle ID (was 'getting the bundle name')
  • Next by thread: Re: Drawing an arrowhead
  • Index(es):
    • Date
    • Thread