Asked • 03/23/19

Knowing two points of a rectangle, how can I figure out the other two?

Hey there guys, I'm learning processing.js, and I've come across a mathematical problem, which I can't seem to solve with my limited geometry and trigonometry knowledge or by help of Wikipedia. I need to draw a rectangle. To draw this rectangle, I need to know the coordinate points of each corner. All I know is x and y for the midpoints of the top and bottom of the box, and the length of all four sides. There is no guarantee on the orientation of the box. Any help? This seems like it should be easy, but it is really stumping me.

Misha F.

tutor
Providing more info from the problem would help like the values of the side lengths. Were you given the coordinates of the midpoints?
Report

03/23/19

2 Answers By Expert Tutors

By:

William W. answered • 03/23/19

Tutor
4.9 (1,021)

Top Pre-Calc Tutor

Doug C. answered • 03/23/19

Tutor
5.0 (1,554)

Math Tutor with Reputation to make difficult concepts understandable

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.