ระยะห่างระหว่างสองจุดในระบบพิกัดคาร์ทีเซียนคำนวณด้วยสูตรระยะห่าง: d = sqrt[(x2-x1)2 + (y2-y1)2] สูตรนี้มาจากทฤษฎีบทพีทาโกรัส ตัวอย่างเช่น สำหรับจุด (2, 3) และ (6, 7): d = sqrt[(6-2)2 + (7-3)2] = sqrt[16 + 16] = sqrt32 ประมาณ 5.66 หน่วย สำหรับปัญหาภูมิศาสตร์จริง ใช้สูตร Haversine สำหรับระยะห่างบนพื้นผิวทรงกลมของโลก
คณิตศาสตร์5 min readApril 13, 2026
How to Calculate Distance Between Two Points: Distance Formula
Apply the distance formula d = √((x₂−x₁)² + (y₂−y₁)²) to find the straight-line distance between any two coordinates in 2D and 3D space, with worked examples.
ลองใช้เครื่องคิดเลขฟรี
Topics:distance formulacoordinate geometryPythagorean theoremalgebra2D 3D
ลองใช้เครื่องคิดเลขฟรี
ไม่ต้องสมัครสมาชิก