Bi puntuen arteko distantzia kalkulatzailea
Bilatu planoko bi punturen arteko distantzia zuzena.
Emaitzak idazten duzun heinean eguneratzen dira.
Kalkulagailu honi buruz
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. 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.This calculatorThis is the everyday tool for map distances, the length of a line segment, the magnitude of a vector, and nearest-neighbor comparisons in data.This is the everyday tool for map distances, the length of a line segment,
[Translation temporarily unavailable. Please try again.]
Zein da distantziaren formula?
d = √((x2 − x1)² + (y2 − y1)²) da. (0,0) eta (3,4) artean distantzia √(9 + 16) = √25 = 5 da.
Nola lotu Pitagorasen teoremarekin?
Triangelu zuzenaren bi hankak, horizontala eta bertikalak, tarte horiei dagozkie, eta distantzia, hipotenusa da, beraz, distantzia formula Pitagorasen formula da.
Zer dira Δx eta Δy?
Puntu horien arteko diferentzia horizontala eta bertikalak dira, x2 − x1 eta y2 − y1, distantziaren atzean triangelu zuzenaren bi hankak.
Tresnak erdi-puntua erakusten du?
Bai. Erdi-puntua ematen duen distantziarekin batera, bi puntuen arteko erdiko koordenatua ere ematen du.
Puntuak ordenatzean zer garrantzi du?
Ez, aldeak karratua dira, beraz bi puntuak trukatuz distantzia berdina lortzen da.
Koordenatu negatiboak kudea ditzake?
Bai. Edozein koordenatu erreal balio du, negatiboak eta hamartarrak barne. Kuadratuak distantzia guztiak positiboak izaten jarraitzen du.
API — erabili kalkulagailu hau kodetik
Deitu kalkulagailu honi JSON amaierako puntu libre gisa — ez da gakorik behar. Bidali beheko eremuen balioak kontsultaren parametro edo JSON gisa. Irakurri APIaren dokumentazioa osorik →
Amaierako puntua
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);
Emaitzak gida orokorrerako estimazioak dira, ez finantzarioak, medikuak edo zerga aholkuak.