Turning point of car on the left or right of travel direction.

Click For Summary
SUMMARY

The discussion centers on determining the relative position of a point (#3) in relation to a vector formed by two other points (#1 and #2) on the Earth's surface. The initial approach involved converting spherical coordinates to Cartesian coordinates and using vector cross products to ascertain whether point #3 lies to the left or right of the arc between points #1 and #2. However, this method fails in the southern hemisphere and near the poles. Suggestions to utilize dot products with the cross product have not yielded consistent results, indicating a need for a more robust solution, potentially involving 3D matrix transformations.

PREREQUISITES
  • Understanding of spherical and Cartesian coordinate systems
  • Familiarity with vector mathematics, including cross products and dot products
  • Knowledge of geospatial concepts, particularly relating to arcs on a sphere
  • Experience with 3D transformations and matrices
NEXT STEPS
  • Research 3D vector mathematics and transformations for accurate spatial calculations
  • Explore geodesic calculations for determining positions on a sphere
  • Learn about spherical trigonometry and its applications in navigation
  • Investigate existing libraries or tools for geospatial analysis, such as GeographicLib or Proj4
USEFUL FOR

Geospatial analysts, software developers working on navigation systems, and engineers involved in aircraft systems integration will benefit from this discussion.

keick
Messages
3
Reaction score
0
I've got an interesting problem that I can solve sometimes, but not always. Say I've got a 3 sets of lat/long positions on the earth, relatively close to each other. The idea is your in a car/airplane driving along and arc between points #1 and #2, with a center point #3. The question to be answered, is is point #3 on my left, or on my right.

My initial solution was to convert from spherical to cartesian, then calculate the vector from #1 to #2 and cross that with the vector from #1 to #3. Then a positive/negative z value would give me left/right.

However this doesn't see to work in the southern hemisphere, nor very well at the poles. Someone thought it would help to dot-product the resulting cross-product with the initial vector to point #1, but that hasn't seemed to produce a consistent result at various problem points on a sphere.

Any ideas, I'm I chasing the wrong concepts, should I be focusing more on a full 3d matrix solution instead of simple vectors?
 
Physics news on Phys.org
You say "an arc between points #1 and #2, with a center point #3." What do you mean by "center point" here?
 
In this particular case, Points #1 and #2 both lay on a circle with center point #3.

I assuming that it really doesn't help in solving the problem though, since my solution should of worked for any point reasonably close (couple miles) to the vector formed between 1 and 2.
 


Please note, this is a real world problem I'm having translating data between two separate aircraft systems.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 30 ·
2
Replies
30
Views
10K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
33
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K