מרחק בין מחשבון שתי נקודות
מצא את המרחק בקו ישר בין שתי נקודות במטוס.
תוצאות עדכון כפי שאתה להקליד.
אודות המחשבון הזה
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.
שאלות לעתים קרובות
מהי נוסחת המרחק?
It is d = √((x₂ − x₁)² + (y₂ − y₁)²). Between (0,0) and (3,4) the distance is √(9 + 16) = √25 = 5.
איך זה קשור למשפט פיתגורס?
הפערים האופקיים והאנכיים יוצרים את שתי הרגליים של המשולש הימני, והמרחק הוא היתר שלו
מה הם Éx ו ey?
הם ההבדלים האופקיים והאנכיים בין הנקודות, x2 et x1 ו Y2 y1
האם הכלי מראה את נקודת האמצע?
כן, לאורך המרחק זה נותן את נקודת האמצע, הקואורדינטות בדיוק באמצע הדרך בין שתי הנקודות.
האם סדר הנקודות משנה?
לא, ההבדלים בריבוע, אז החלפת שתי הנקודות נותנת את אותו המרחק.
האם הוא יכול להתמודד עם נקודות ציון שליליות?
Yes. Any real coordinates work, including negatives and decimals — the squaring keeps every distance positive.
API — use this calculator from code
Call this calculator as a free JSON endpoint — no key required. Send the field values below as query parameters or JSON. כל מה שאתה משמיט משתמש באותה ברירת מחדל הדף הזה מלא מראש; פרמטר לא ידוע הוא 400, אף פעם לא אפס שקט. קרא את כל מסמכי API →
נקודת סיום
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);
התוצאות הן הערכות להדרכה כללית בלבד, לא ייעוץ כספי, רפואי או מס.