Building a Right Triangle

Introduction

Welcome back to Distance on the Coordinate Plane! This is the second lesson of the course, and you are building momentum. In Lesson 1, you learned how to find horizontal and vertical distances between points that line up along a single axis. That skill is about to become the foundation for something bigger.

In this lesson, we will take two points that do not line up horizontally or vertically, and we will build a right triangle that connects them. This construction is the key step that lets us use the Pythagorean theorem to find the straight-line distance between any two points on the plane. Let's get started.

From Straight Lines to Diagonals

Connecting Two Points with a Diagonal

Constructing the Right Triangle Step by Step

Locating the Right-Angle Vertex

Identifying the Legs and the Hypotenuse

A Quick Check with Negative Coordinates

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