Advice on geometric calculations

In summary, the conversation is about finding the shortest distance between a single point and an arbitrary line. The distance can be calculated using the lat/long coordinates for the single point and the endpoints of the line segment. However, in some cases, the shortest distance will be a perpendicular path to the line segment. The formula for the distance in this case is d = |\frac{Am + Bn + C}{\sqrt{A^2 + B^2}}|. However, there may not always be a perpendicular path if the line has endpoints. The challenge is in calculating the distance from the single point to the randomly specified line segment BC when starting with lat/long coordinates, as the line can have any orientation. The idea of using
  • #1
kirk
3
0
Hi, any advice out there on an interesting challenge (at least a challenge for me :-)?

I am trying to come up with the easiest way to calculate the shortest distance between a single point and an arbitrary line. I want to start with lattitude and longitude coordinates for single point and for the endpoints of line segment.

It is a straightforward calculation to get the distance from the single point to the end points of the line segment using the lat/long.

But sometimes the shortest distance will be a perpendicular path to the line segment. I'm rusty on my geometry and not seeing the simple way of doing the calculations. is the answer just in rotation and translation of coordinates?

Any advice or tips out there?
 
Mathematics news on Phys.org
  • #2
If the line is Ax + By + C = 0 and the point is (m, n) then the distance is:

[tex]d = |\frac{Am + Bn + C}{\sqrt{A^2 + B^2}}|[/tex]

Or are you talking about a different method?
 
  • #3
"It is a straightforward calculation to get the distance from the single point to the end points of the line segment using the lat/long."

lat/long? Are you talking about the distance from a point on a sphere to a great circle?

"But sometimes the shortest distance will be a perpendicular path to the line segment."
I would have thought it was always on a perpendicular path!
 
  • #4
IF the line has end points there may not be a perpendicular that passes through the point off the line.
 
  • #5
clarifications

good clarification questions.

yes, HallsofIvy, for the distance between two points, I was talking about great circles. I have used some formulas I found to get the distance between the two points using lattitude and longitude measures.

My concern is the shortest distance between the single A point and any point on the line segment BC.

As Matt points out, because of the end points of the line segment, there is not always a perpendicular. However, in that case, I will just use the great circles formula to get the distance to the nearest end point.

My big problem is thinking through how to calculate the distance from A to the randomly specified line segment BC when starting with the lattitude and longitude coordinates. Since the BC can have any orientation, I'm still struggling with a way to set up the formulas.

Thanks folks!
 
  • #6
My big problem with the situation when there is a perpendicular. How do I calculate the distance from A to the randomly specified line segment BC when starting with the lattitude and longitude coordinates? Since the BC can have any orientation, I'm still struggling with a way to set up the formulas.

I'm trying to think through rotations and translation of coordinates because it seems to just like dropping a perpendicular from above an axis, but I'm too rusty with it. And then doing it starting with lattitude and longitude.


thanks!
 

FAQ: Advice on geometric calculations

What are some common geometric shapes and their properties?

Some common geometric shapes are triangles, squares, rectangles, circles, and polygons. Each shape has its own unique properties, such as the number of sides, angles, and symmetry.

How do I calculate the area of a shape?

To calculate the area of a shape, you can use the formula specific to that shape. For example, the area of a triangle is calculated by multiplying the base by the height and dividing by 2. The area of a circle is calculated by multiplying pi (3.14) by the square of the radius.

What is the difference between perimeter and area?

Perimeter is the distance around the outside of a shape, while area is the measure of the space inside the shape. Perimeter is measured in units of length, while area is measured in units squared.

How can I use geometric calculations in real life?

Geometric calculations are useful in many real-life situations, such as designing buildings, calculating the amount of paint needed for a room, or measuring the area of a piece of land. They are also used in fields like engineering, architecture, and physics.

Are there any helpful tools for doing geometric calculations?

Yes, there are many tools available for doing geometric calculations. These include calculators, geometric drawing software, and online resources with formulas and explanations. It is also helpful to have a ruler, protractor, and compass for accurate measurements and constructions.

Back
Top