Re: Points in BezPath
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