Attālums starp diviem punktiem kalkulators

Atrodiet taisnas līnijas attālumu starp diviem punktiem plaknē.

Attālums —
Horizontālas izmaiņas (Δx) —
Vertikālas izmaiņas (Δy) —
Viduspunkts —

Rezultāti atjaunināt, kā jūs tipa.

Vai šis kalkulators tev sniedza pareizo atbildi?

Par šo kalkulatoru

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.

Bieži uzdotie jautājumi

Kāda ir distances formula?

Tas ir d = (x2 - x1)2 + (y2 - y1)2) Starp 0,0 un (3,4) attālums ir (9 + 16) = 25 = 5.

Kā tas attiecas uz Pithorejas teorēmu?

Horizontālie un vertikālie starpsienīši veido divas labā trīsstūra kājas, un attālums ir tā hipotensitāte, tāpēc attāluma formula ir Pythagoras uz režģa.

Kas ir Δx un Δy?

Tie ir horizontālās un vertikālās atšķirības starp punktiem x2 – x1 un y2 – y1 – labajā trīsstūrī aiz attāluma.

Vai rīks parāda viduspunktu?

Jā. Līdzās attālumam, ko tas sniedz viduspunktam, koordināta tieši pusceļā starp abiem punktiem.

Vai ir svarīgi, lai tiktu ievērota šo jautājumu secība?

Nē. Atšķirības ir kvadrātveida, tāpēc mainot divus punktus, tiek dots vienāds attālums.

Vai tā spēj apstrādāt negatīvās koordinātas?

Jā. Jebkura reāla koordināta strādā, ieskaitot negatīvus un decimāldaļu — aiļu ainaviņa saglabā visus attālumus pozitīvi.

❤️ Mīlestība Calculator.Free? Dalīties ar to

𝕏  X Facebook Reddit
API – izmantot šo kalkulatoru no koda

Sūtīt lauka vērtības zemāk kā vaicājumu parametrus vai JSON. Jebko, ko nelaižat, izmanto to pašu noklusēto šo lapu, ar kuru tiek aizpildīta nezināma parametra versija 400, nekad kluss nulles variants. Lasīt visus API dokumentus →

Mērķa punkts

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);

Rezultāti ir aprēķini tikai par vispārējiem norādījumiem, nevis finanšu, medicīnas vai nodokļu konsultācijām.