Skip to main content

วิธีการคำนวณ Distance Calculator 2D

learn.whatIsHeading

The distance formula calculates the straight-line (Euclidean) distance between two points in a 2D coordinate plane. It is derived directly from the Pythagorean theorem — the distance is the hypotenuse of a right triangle formed by the horizontal and vertical differences.

คำแนะนำทีละขั้นตอน

  1. 1Find the horizontal difference: Δx = x₂ − x₁
  2. 2Find the vertical difference: Δy = y₂ − y₁
  3. 3Square both differences and add them
  4. 4Take the square root: d = √(Δx² + Δy²)

ตัวอย่างที่มีคำตอบ

อินพุต
(0,0) to (3,4)
ผลลัพธ์
5
√(9+16)=√25=5 — a 3-4-5 triangle
อินพุต
(1,1) to (4,5)
ผลลัพธ์
5
√(9+16)=5
อินพุต
(−2,3) to (4,−1)
ผลลัพธ์
7.211
√(36+16)=√52≈7.211

พร้อมที่จะคำนวณแล้วหรือยัง? ลองใช้เครื่องคิดเลข Distance Calculator 2D ฟรี

ลองด้วยตัวคุณเอง→

การตั้งค่า