Afstand tussen twee Punte Sakrekenaar
Kry die reguit afstand tussen twee punte op 'n vliegtuig.
Resultate werk op soos jy tik.
Aangaande hierdie sakrekenaar
This calculator finds the straight-line distance between two points (x₁, y₁) and (x₂, y₂) using the distance formula, and also reports the horizontal change (Δx), the vertical change (Δy), and the midpoint of the segment, with a plot of the two points.
The distance formula, d = √((x₂ − x₁)² + (y₂ − y₁)²), is simply the Pythagorean theorem applied to a grid: the horizontal and vertical gaps are the two legs of a right triangle and the distance is the hypotenuse. Between (0, 0) and (3, 4), Δx = 3 and Δy = 4, so d = √(3² + 4²) = √(9 + 16) = √25 = 5. Because the differences are squared, the order of the points does not change the result, and negative coordinates work fine.
This is the everyday tool for map distances, the length of a line segment, the magnitude of a vector, and nearest-neighbour comparisons in data. Any two points on a plane have exactly one straight-line distance between them.
Dikwels gevra vrae
Wat is die afstandformule?
It is d = √((x₂ − x₁)² + (y₂ − y₁)²). Between (0,0) and (3,4) the distance is √(9 + 16) = √25 = 5.
Hoe hou dit verband met die Pythagorean - arem?
Die horisontale en vertikale gapings vorm die twee bene van'n regte driehoek, en die afstand is sy hipotenuse Dreiser sodat die afstandformule Pytagoras op die rooster is.
Wat is ooit?
Hulle is die horisontale en vertikale verskille tussen die punte, x2 -1 x1 en y2 -1 יהוה die twee bene van die regter driehoek agter die afstand.
Toon die instrument die middelpunt?
Ja, langs die afstand wat dit die middelpunt gee, is die rangskikking presies halfpad tussen die twee punte.
Maak die volgorde van die punte saak?
Nee. die verskille is kwadraat, so uitruil van die twee punte gee dieselfde afstand.
Kan dit negatiewe koördinate hanteer?
Ja. Enige werklike koördinate werk, insluitende negatiewes en desimale takies takies wat die kwalring hou elke afstand positief.
API ← gebruik hierdie sakrekenaar van kode
Bel hierdie sakrekenaar as 'n vry JSON-punt takies wat nodig is. Stuur die veldwaardes hieronder as navraag parameters of JSON. Enigiets wat jy weglaat gebruik dieselfde verstek hierdie bladsy is vooraf gevul met; 'n onbekende parameter is 'n 400, nooit' n stil nul. Lees die volle API docs →
Einde punt:
GET https://calculator.free/api/v1/distance-two-points/
curl
curl "https://calculator.free/api/v1/distance-two-points/?x1=0&y1=0&x2=3&y2=4"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/distance-two-points/?" + new URLSearchParams({
"x1": "0",
"y1": "0",
"x2": "3",
"y2": "4"
}));
const data = await r.json();
console.log(data.results);
Die resultate is skattings van algemene leiding, nie net finansiële, mediese of belastingvoorligting nie.