Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-11-2008, 02:05 PM   #7 (permalink)
lapse
New Member
 
Join Date: Aug 2008
Posts: 211
Default

There's an easier way, now that I think about it.

Suppose your starting point is A and your destination is B.

Calculate distance from A to (0, 0) and B to (0, 0). You have two lengths of a triangle.

I told you how to calculate the distance from A to B so you have your third length which completes your triangle.

Use some basic trig to find the angle.
lapse is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,808
Threads: 89,206
Posts: 380,628
Top Poster: BrianSlick (7,129)
Welcome to our newest member, kaileymo123
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:34 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.