How to calculate the slope between touch point and UIImageView center?
I tried a lot of codes, one of them is this:
CGPoint translation = [gesture translationInView:[myImage superview]];
double tx = myImage.center.x - translation.x;
double ty = myImage.center.y - translation.y;
double t_length = sqrt((tx*tx) + (ty*ty));
double a = cos(ty / t_length);
It is not giving a right angle, so please help me