开发者

CGPointApplyAffineTransform giving negative values

I have a CGPoin开发者_Python百科tApplyAffine which is giving me negative values such as -161 for x and -58 for y. Are these values possible? Or am I using it incorrectly?

CGPoint rotatedCenter = CGPointApplyAffineTransform(subview.center, self.transform);

Thanks!


Absoulutley.

Lame example:

Say you had a dot located at 100,100 and you rotated the image (centered at 0,0) 180 degrees.

The dot would now be at -100,-100.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜