Mike P.

asked • 01/18/15

Given a line of a known slope, how can I find the point on a perpendicular line that is a given distance from a point on the first line?

I'm trying to build a program that can take a line and turn it into a rectangle. So, the known information would be the x1,y1 and x2,y2 of that first line. What I need to be able to do is find the point that is on a line that is perpendicular to the given line and passes through one of the given points and is X units of distance away from the given point.
 
To give a concrete example, let's say the given points are:
(5,3)
(10,7)
 
So the slope is 5/4. This is simple to calculate
so we need a line with a slope of -4/5 (perpendicular) that passes through the point 5,3
And then we need to find the point that is on that line and is a distance of 2 (2 is given) from the point 5,3
 
We could then repeat the calculation for the other point (10,7), and we'd have the 4 points needed to make a rectangle.

3 Answers By Expert Tutors

By:

Victor A. answered • 01/18/15

Tutor
New to Wyzant

Math and Physics tutor

Mitiku D. answered • 01/18/15

Tutor
4.9 (205)

Good As Gold

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.