Asked • 03/19/19

Calculate vertices' coordinates of a rectangle, given midline and broadth of rectangle?

I have latitude and longitude of two points making the midline of a rectangle. Now I want to determine coordinates of 4 vertices of that rectangle. I know how to calculate on plane geometry by using line equation. But on geographic geometry, I'm new. I already read how to calculate one unit of latitude and longitude decimal degree but I'm still confused how to add them to a given point to calculate wanted points. My problem is like this: Given: - Broadth of rectangle - Coordinates of two points making the midline, distance between these two points are equal to the width Result: Coordinates of 4 vertices of rectangle For example: The given midline has two points: A (10.767008,106.665884) B (10.767715,106.667151) Broadth is 4-metre long All I could do now is to calculate the width of rectangle from those two points. How can I use width and height to calculate 4 vertices of this rectangle? All of my calculated cases are on small scale (part of one street of a city) so I think altitude can be excluded

1 Expert Answer

By:

Rahul S. answered • 05/19/25

Tutor
New to Wyzant

Senior Software Engineer

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.