¡@

Home 

2014/10/15 ¤U¤È 10:16:03

iphone Programming Glossary: xfm

BezierPath Rotation in a UIView

http://stackoverflow.com/questions/10533793/bezierpath-rotation-in-a-uiview

original path. angle is a value in radians if angle 0.0 return self else NSBezierPath copy self copy NSAffineTransform xfm RotationTransform angle cp copy transformUsingAffineTransform xfm return copy autorelease which uses NSAffineTransform RotationTransform.. else NSBezierPath copy self copy NSAffineTransform xfm RotationTransform angle cp copy transformUsingAffineTransform xfm return copy autorelease which uses NSAffineTransform RotationTransform const CGFloat angle const NSPoint cp return a transform.. NSPoint cp return a transform that will cause a rotation about the point given at the angle given NSAffineTransform xfm NSAffineTransform transform xfm translateXBy cp.x yBy cp.y xfm rotateByRadians angle xfm translateXBy cp.x yBy cp.y return..