¡@

Home 

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

iphone Programming Glossary: angletoradians

iPhone Compass GPS Direction

http://stackoverflow.com/questions/4130821/iphone-compass-gps-direction

www.youtube.com watch v iC0Xn8hY80w this link 1 20' I write some code however it can't rotate right direction. float angleToRadians double a return a 180 M_PI void updateArrow double alon longi doubleValue source double alat lati doubleValue source double.. source double blon pointlongi doubleValue destination double blat pointlati doubleValue destination float fLat self angleToRadians alat float fLng self angleToRadians alon float tLat self angleToRadians blat float tLng self angleToRadians blon float temp.. destination double blat pointlati doubleValue destination float fLat self angleToRadians alat float fLng self angleToRadians alon float tLat self angleToRadians blat float tLng self angleToRadians blon float temp atan2 sin tLng fLng cos tLat cos..