Distance Formula Calculation
Use the distance formula to find the straight-line distance between two points on a two-dimensional Cartesian coordinate plane.
Use the distance formula to find the straight-line distance between two points on a two-dimensional Cartesian coordinate plane.
The Haversine formula calculates the great-circle distance between two latitude and longitude coordinates on a spherical Earth model .
The same idea extends to three dimensions and higher-dimensional coordinate systems by adding the squared difference for each additional coordinate.
The distance formula calculates how far apart two points are , but the correct equation depends on the type of coordinates and space you are working with.