Калькулятор середні точки
Знайдіть точку рівно посередині між двома координатами.
Результати оновлення під час введення.
Про цей калькулятор
The midpoint is the point exactly halfway between two coordinates. This calculator returns the midpoint, its separate x and y components, and the distance between the two points, with a plot showing the segment split in half.
The method is to average the two x-values and the two y-values independently: midpoint = ((x₁ + x₂) / 2, (y₁ + y₂) / 2). For (0, 0) and (4, 6), the midpoint is ((0 + 4) / 2, (0 + 6) / 2) = (2, 3). Because averaging is symmetric, the order of the points makes no difference, and negative or decimal coordinates work just as well.
Midpoints are used to bisect a line segment, find the centre of a shape, place a label halfway along a line, or average two positions. If you know the midpoint and one endpoint, the other endpoint is 2 × midpoint − known point.
Часті запитання
Як знайти середню точку між двома точками?
Average the two x-coordinates and the two y-coordinates separately. The midpoint of (0,0) and (4,6) is ((0+4)/2, (0+6)/2) = (2, 3).
Чи є середня величина такою ж, як і середня?
Yes — the midpoint is just the average of the two points, taken coordinate by coordinate.
What is the midpoint of (0,0) and (4,6)?
Average each coordinate: ((0 + 4)/2, (0 + 6)/2) = (2, 3), the default example this tool shows.
Чи показує вона відстань між точками?
Разом з середньою точкою калькулятор надає довжину відрізка, що приєднується до цих двох точок.
Чи можу я знайти кінцеву точку з середини?
Так, з перевпорядкуванням: якщо M - це середня точка, а A - відома кінцева точка, то інша кінцева точка - 2M − A, що застосовується до кожної з координат.
Чи ця точка посередині впливає на те, що є перше?
Ні. тому введення двох точок у будь-якому порядку стрибків у одну й ту ж точку посередині.
API ⇩ використовувати цей калькулятор з коду
Викликати цей калькулятор як вільний son ⁄ без потреби у клавіші. Надсилайте значення полів, нижче, як параметри запиту або JSON. Будь- який варіант, який ви не вкажете, використовує ту саму типову сторінку, що і раніше; невідомий параметр - 400, ніколи не є німальним. Читати документи API повністю →
Кінцева точка
GET https://calculator.free/api/v1/midpoint/
curl
curl "https://calculator.free/api/v1/midpoint/?x1=0&y1=0&x2=4&y2=6"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/midpoint/?" + new URLSearchParams({
"x1": "0",
"y1": "0",
"x2": "4",
"y2": "6"
}));
const data = await r.json();
console.log(data.results);
Результати - це не фінансові, медичні чи податкові поради, а загальні вказівки.