Convert relative to global

  • Thread starter mamali
  • Start date
  • #1
5
0
could any one 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 any one helping me find my position ?
 

Answers and Replies

  • #2
HallsofIvy
Science Advisor
Homework Helper
41,833
961
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.
 

Related Threads on Convert relative to global

  • Last Post
Replies
2
Views
833
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
6
Views
5K
  • Last Post
Replies
9
Views
10K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
7
Views
2K
Replies
7
Views
3K
  • Last Post
Replies
5
Views
3K
Replies
18
Views
9K
  • Last Post
Replies
2
Views
2K
Top