เครื่องคิดเลขระยะทางระหว่างจุดสองจุด
ค้นหาระยะทางทางตรงระหว่างจุดสองจุดบนพื้นผิว
ผลลัพธ์จะปรับปรุงเมื่อคุณพิมพ์
เกี่ยวกับเครื่องคิดเลขนี้
the distance formula, d = √((x₂ − x₁)² + (y₂ − y₁)²), is simply the Pythagorean theorem applied toagrid: the horizontal and vertical gaps are the two legs ofaright 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.This calculator is the everyday tool for map distances, the length ofaline segment, the magnitude ofavectors, and nearest-neighbor comparisons in data. Any two points onaplane have exactly one straight-line distance between them.This calculator is the everyday tool for map distances, the length ofaline segment, the magnitude ofavectors, and nearest-neighbor comparisons in data.This calculator is the everyday tool for map distances, the length ofaline segment, the magnitude ofavectors, and nearest-neighbor comparisons in data.This calculator is the everyday tool for map distances, the length ofaline segment,The distance formula, d = √(x₂ − x₁)² + (y₂ − y₁)²), is simply the Pythagorean theorem applied toagrid: the horizontal and vertical gaps are the two legs ofaright 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 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, withaplot of the two points.
คำถามที่ถามบ่อย
อะไรคือสูตรระยะทาง?
มันคือ d = √ ((x2 - x1) ² + (y2 - y1) ²) ระหว่าง (0,0) และ (3,4) ระยะทางคือ √ (9 + 16) = √25 =5
มันเกี่ยวข้องกับทฤษฎีของพีทาโกรสได้ยังไง
ช่องว่างทางแนวนอนและแนวตั้ง ทำให้เกิดสองขาของสามเหลี่ยมตรง และระยะทางคือ ความยาวของมัน ดังนั้นสูตรระยะทางคือ พิธาโกรา
อะไรคือ Δx และ Δy?
มันคือความแตกต่างทางแนวนอนและแนวตั้งระหว่างจุด x2 - x1 และ y2 - y1 - สองขาของสามเหลี่ยมด้านขวา หลังระยะทาง
เครื่องมือแสดงจุดกลางหรือไม่
ใช่ นอกจากระยะทาง มันยังให้จุดกลาง จุดตั้งศูนย์กลาง ตรงกลางระหว่างจุดสองจุด
คำถามคือ ทำไมคุณถึงเลือก เลขที่ 10?
ความแตกต่างคือสองเท่า ดังนั้นการเปลี่ยนจุดสองจุด ให้ระยะทางเท่ากัน
มันจัดการกับจุดศูนย์กลางลบได้ไหม
ใช่ ทุกจุดประสงค์จริงทำงาน รวมทั้งลบและเลขทศนิยม ยกกำลังสองทำให้ทุกระยะทางเป็นบวก
API - ใช้เครื่องคิดเลขนี้จากโค้ด
เรียกเครื่องคิดเลขนี้เป็นจุดจบ JSON แบบฟรี - ไม่จำเป็นต้องใช้กุญแจ ส่งค่าในช่องด้านล่างนี้เป็นพารามิเตอร์คำถามหรือ 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);
ผลลัพธ์เป็นเพียงการประมาณการ สำหรับคำแนะนำทั่วไปเท่านั้น ไม่ใช่การเงิน การรักษา หรือคำแนะนำเกี่ยวกับภาษี