Finding Global Position from Distance, Phi, and Theta?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
mamali
Messages
5
Reaction score
0
could anyone help me ?
i know global position of three flag for example (10,20,30)
and i have my distance , phi and theta to flags .
could anyone helping me find my position ?
 
Mathematics news on Phys.org
What do you mean by "three flags"? You give the position, (10, 20, 30) of one point. But knowing the coordinates of a single point and your position relative to that point is sufficient. Your x, y, z coordinates, taking that one point as origin are x= [itex]\rho cos(\theta) sin(\phi)[/itex], y= [itex]\rho sin(\theta) sin(\phi)[/itex] and z= [itex]\rho cos(\phi)[/itex]. Your x, y, z "global" coordinates, relative to the same coordinate system in which your point is (10, 20, 30) are x= [itex]\rho cos(\theta) sin(\phi)+ 10[/itex], y= [itex]\rho sin(\theta) sin(\phi)+ 20[/itex] and z= [itex]\rho cos(\phi)+ 30[/itex], a simple translation.

I am assuming here that your "[itex]\theta[/itex]" and "[itex]\phi[/itex] are relative to the "global" coordinate system. If not, you might need three points and would need to specify how [itex]\theta[/itex] and [itex]\phi[/itex] are measured.