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.
精彩评论