I have an X,Y Coordinate, an angle, and a distance.
If i start at point X, Y, travel along the angle for the given distance, I should be able to calculate the resulting new X,Y.
ive been scouring the net for the formula, with no luck. so far i have
X2 = X + (distance * Cos(angle))
Y2 = Y + (distance * Sin(angle))
but it doesn't appear to be working.
Any help? Thanks!
Ok I have determined that infact:
X2 = cos(angle) * distance
Y2 = sin(angle) * distance
What if i have a starting point other than 0,0? How does that new co-ord fit in?
If i start at point X, Y, travel along the angle for the given distance, I should be able to calculate the resulting new X,Y.
ive been scouring the net for the formula, with no luck. so far i have
X2 = X + (distance * Cos(angle))
Y2 = Y + (distance * Sin(angle))
but it doesn't appear to be working.
Any help? Thanks!
Ok I have determined that infact:
X2 = cos(angle) * distance
Y2 = sin(angle) * distance
What if i have a starting point other than 0,0? How does that new co-ord fit in?