How the page measures a line
The tool holds two points, A and B, each with one number box per axis. Defaults are A at 0, 0 and B at 3, 4. A Dimensions dropdown reveals the z boxes and zeroes them when you return to 2D. The maths is the Pythagorean theorem: differences between coordinates are squared, added, and square-rooted. There is no haversine and no units, so a result of 5 means five of whatever the coordinates count in.
A worked example
Leaving the defaults gives dx = 3 and dy = 4. The distance figure shows 5, the squared row shows 25, the midpoint row shows 1.5, 2, and the direction line reads 53.13° above horizontal, atan2 of 4 over 3 to two decimals. Selecting 3D with B's z default of 12 lifts the square total to 169 and the distance to 13, midpoint 1.5, 2, 6. Every value except the angle rounds to four decimals.
The preview drawing
An inline SVG scales the x-y footprint of both points into a fixed canvas: a blue line between a teal A and a red B, an amber dot at the midpoint, with the length below. The drawing uses only x and y, so 3D pairs sharing a plan view share one drawing. For ground distance between real places, start with the GPS coordinates converter, and the slope calculator covers the gradient this direction row implies.
Where it stops
- Coordinates are flat; feeding in latitude and longitude produces a number that means nothing on a sphere.
- Direction is measured from the horizontal axis, never as a compass bearing.
- A blank or unparseable box silently counts as zero rather than prompting.
- Equal points replace every output with a dash and show one explanatory line.
- Nothing carries units, so metres and miles look identical on screen.
Questions people ask
Does this work like a map measuring app?
No. Maps measure along the earth's surface; this measures a straight line between numbers on axes.
Why does the direction row say below horizontal?
Because the second point sits under the first, a negative y difference. A positive one gets the above wording.
Can I use negative coordinates?
Yes. Minus signs work, and the differences, hence the distance, behave the same in every quadrant.