• 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
Re: Points in BezPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Points in BezPath


  • Subject: Re: Points in BezPath
  • From: glenn andreas <email@hidden>
  • Date: Mon, 17 Oct 2005 14:45:26 -0500


On Oct 17, 2005, at 2:12 PM, Brian O'Brien wrote:

I need to mirror a BezierPath about a line.
To do this I need to be able to extract the Points from the Bezier path.
Anyone know how to get the points out?

If you truly need to reflect a NSBezierPath across a line, you don't need to extract the points at all, since reflection is an affine transformation, so (once you figure out the transformation) you can just use NSAffineTransformation and then NSBezierPath's "transformUsingAffineTransform:".


Other than figuring out the transformation (which could be modeled as rotation, scale on axis by -1, and rotate back, with a few translations thrown in, though I'm sure there's probably a "one step equation" for this), it would be easier than trying to tweak points...


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! quadrium | build, mutate, evolve | images, textures, backgrounds, art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Points in BezPath
      • From: Andy Lee <email@hidden>
References: 
 >Points in BezPath (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: help with bezpath please...
  • Next by Date: Why does the Workspace not like Germans?
  • Previous by thread: Re: Points in BezPath
  • Next by thread: Re: Points in BezPath
  • Index(es):
    • Date
    • Thread