Calculate the distance between two points in 2D or 3D space, and find the midpoint, slope, and line equation.
Point 1:
Point 2:
Enter points as x,y pairs (one per line):
| Property | Value |
|---|
d = √((x₂−x₁)² + (y₂−y₁)²)
d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)
d = |x₂−x₁| + |y₂−y₁| — used in grid-based routing (named after Manhattan's block grid).
M = ((x₁+x₂)/2, (y₁+y₂)/2)