Calculating Distance with Latitude and Vectors

In summary, to find the magnitude of the displacement vector between two cities given their latitudes and longitudes, you can convert the polar coordinates to rectangular coordinates and use the distance formula in cartesian coordinates. This is a more straightforward method than using the scalar product.
  • #1
courtrigrad
1,236
2
If you are given latitudes and longitudes of two cities and you want to find the magnitude of the displacement vector, how would you find the distance? Would you have to use the scalar product?

Thanks
 
Physics news on Phys.org
  • #2
The most straight forward way is vector subtraction.

The magnitude of both vectors is the radius of the Earth. The latitude and longitude give you the other two polar coordinates needed to define each location's position vector. Convert the polar coordinates to rectangular coordinates (ijk coordinates) by projecting the magnitude onto the x, y, and z axis, and do the vector subtraction.
 
  • #3
So if the question is: A man flies from Washington to Manilla. Find the magnitude of the displacement vector if the latitudes and longitudes are: 36 N, 70 E, 121 N, 56 W. You would have to convert the latitudes and longitudes into x-y coordinates? How would you do that?

Thanks
 
  • #4
courtrigrad said:
So if the question is: A man flies from Washington to Manilla. Find the magnitude of the displacement vector if the latitudes and longitudes are: 36 N, 70 E, 121 N, 56 W. You would have to convert the latitudes and longitudes into x-y coordinates? How would you do that?

Thanks
It's not just x-y coordinates; it's x-y-z coordinates that you need. The cities are on the surface of the earth, so they are one Earth's radius from its center. Lattitude and longitude give you the rest of the information you need to express the postions of the cities in terms of x-y-z

http://astronomy.swin.edu.au/~pbourke/projection/coords/

Then use the distance formula in cartesian coordinates to find the magnitude of the displacement.
 
Last edited by a moderator:

FAQ: Calculating Distance with Latitude and Vectors

What is the formula for calculating distance using latitude and vectors?

The formula for calculating distance using latitude and vectors is the haversine formula. It takes into account the curvature of the Earth and calculates the great-circle distance between two points using their latitudes and longitudes.

How do I convert degrees to radians for the haversine formula?

To convert degrees to radians, you can use the formula: radians = degrees * (π/180). So if you have a latitude or longitude in degrees, you can convert it to radians by multiplying it by π/180.

Can I use the haversine formula for any two points on Earth?

Yes, the haversine formula is applicable for any two points on Earth. It takes into account the Earth's curvature and gives a more accurate distance calculation compared to other formulas that assume a flat Earth.

What is the difference between distance and displacement in vector calculations?

Distance refers to the total length between two points, regardless of direction. Displacement, on the other hand, takes into account the direction of the movement and gives the straight-line distance between two points.

How do I use vectors to calculate distance between multiple points?

To calculate the distance between multiple points, you can use the Pythagorean theorem. First, calculate the distance between the first two points. Then, use that as the hypotenuse for the next calculation, and continue until you have calculated the distance between all the points. Finally, add all the distances together to get the total distance traveled.

Back
Top