Are these spherical coordinates?
Hello I am trying to find a formula to calculate coordinates depending on speed, long and lat.
x direction = 90 degrees lat, 0 degrees long
y direction = 0 degrees lat, 90 degrees long
z direction = 0 lat, 0 long
if object travels at random speed,long and lat how does one calculate how quickly the object is moving in each direction
eg: speed = 10mph
long heading = 45 degrees
lat heading = 45 degrees
how quickly is the object traveling towards x,y,z
hope thats clear enough
Thanks for any help you can offer!
x = left/right (pitch)
y = up/down (pitch)
z = forward/back
Are these spherical coordinates? I do not know im a little uneducated in mathematical terms.
http://www.mymeanscene.com/3ddesign.html
Hello mrmmeanscene,
The question is very strangely put.
It seems to me like your asking how fast the object is going, yet the speed is given for you!x direction = 90 degrees lat, 0 degrees long
y direction = 0 degrees lat, 90 degrees long
z direction = 0 lat, 0 long
if object travels at random speed,long and lat how does one calculate how quickly the object is moving in each direction?
eg: speed = 10mph
long heading = 45 degrees
lat heading = 45 degrees
how quickly is the object traveling towards x,y,z??
Maybe you mean how long it will take to reach point (x,y,z)?
sorry, its hard for me to explain, I have added a diagram and link to the program in question above.
heres a scenario:
object starts at coordinates x0,y0,z0 and can head in any direction at any speed, if it travels facing 45 degrees long and 45 degrees lat at 10 units per second how would I calculate its coordinates after 2 seconds.
I would like to point out there are no degrees in your picture. However, what I think you want to know is that if you're going, let's say 10 mph longitude, and 5 mph lattitude, at what point will you end up after one hour? If this is the case I can easily help you out.Originally Posted by mrmeanscene
alright, first thing we'll do is forget about the z-axis until later.
Let's say we're going 4mph along the x-axis (longitude) and 3mph along the y-axis (lattitude)
If we start with point (0,0) after an hour we will get to point (4,3)
Now use the distance formula:
substitute:
Subtract:
solve:
add:
solve:
and speed is distance over time, so we get the speed of 5mph.
In short the formula your going to use is (note: means speed along the "a" axis and t means total):
If the x-axis is going 10mph, the y-axis at 5mph, and the z-axis at 4mph, then after one hour you will reach point where x_1, y_1, and z_1 are the points you started off with.
In other words the formula you will use to find the ending point is: where h is the time in hours after you started and x_2, y_2, and z_2 are the ending points