Calculating Diagonal Distance

Introduction

Welcome back to Distance on the Coordinate Plane! You have reached the third of four lessons in this course, and this is where everything comes together. In Lesson 1 you learned to measure horizontal and vertical distances, and in Lesson 2 you built right triangles whose legs are those distances and whose hypotenuse is the diagonal between two points. The missing piece has been calculating that diagonal — and the Pythagorean theorem is the tool that fills the gap. Let's put it to work.

Connecting the Triangle to the Theorem

A Whole-Number Distance

When the Distance Is Not a Whole Number

Negative Coordinates Work the Same Way

From Points to Distance in Four Steps

Conclusion and Next Steps

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal