moving CGPoint a certain distance along a certain heading...iphone

Posted by Brodie4598 on Stack Overflow See other posts from Stack Overflow or by Brodie4598
Published on 2010-06-03T19:39:44Z Indexed on 2010/06/03 19:44 UTC
Read the original article Hit count: 250

Filed under:
|
|
|
|

this seems like such a simple problem but I have been unable to find an answer (and im no good at math). I am trying to move a UIView to a new CGPoint X distance away along a certain heading. What is the formula for determining the new coordinates?

(i do no want this to be animated, just an instantaneous move)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c