Hi, I am a complete green horn on trig and have bought a rather naff "Trigonometry for Dummies" book that is beyond me.
I do not accept I cannot learn it as this book is not written in a way I can understand so have ordered another title.
Anyway onto my problem!
The coordinate plain is on the iPhone which is 320 * 460
The circle centre (is this the origin) is 160, 230
I use these equations to get my distance from centre and the degrees that this distance represents around the inside of the circle.
kSlideCentreX = 160 and kSlideCentreY = 230
this is how I get the slope
distanceFromCentre = sqrt(((currentPosition.x - kSlideCentreX ) * (currentPosition.x - kSlideCentreX)) - ((currentPosition.y - kSlideCentreY) * ( currentPosition.y - kSlideCentreY)));
this gives me the radians
slope = (kSlideCentreY - currentPosition.y) / (kSlideCentreX - currentPosition.x);
kRadiansPerDegree = 0.0174532f
gives me the degrees ( but not fixed yet )
this is supposed to fix them to real degrees?
atan(slope) / kRadiansPerDegree
my problem is that any coords on the right of the circle run from 180 degrees at the top (12) to 0 at the bottom (6), and on the left side from 180 at the bottom (6) to 0 at the top (12).
90 - ( atan(slope) / kRadiansPerDegree)
I can understand and learn things as long as they are done so in a fashion my brain can grasp
I am searching and searching but coming up blank probably due to not asking the right question or how to phrase it.
I would be very grateful if someone could point me in the right direction or if feeling very friendly and helpful tutor me through this problem so I can learn from it and expand?