Imagine a point in X,Y,Z space (me) and given a distance from me (say
1000 meters) and a pair of angles relative to me (say 45 degrees up
and relative to the direction I am facing 45 degrees to the right) how
can I calculate where the second object is in X,Y,Z space? Now given
that I am facing a direction that would also imply I need a second
"me" x,y,z corrdinate\offset for the direction I am look towards.
Lets assume for the moment I am at X=1465.34, Y=2525.21, and Z=73.51
and I want the second object to be 1000 meters from me 45� up and 45�
to my left. What then is the XYZ of the second object? Been too many
years since school and for the life of me cannot think\remember how to
do this....
http://en.wikipedia.org/wiki/File:Coord_system_CA_0.svg
And you are facing in the positive X direction.
Then the second point (x,y,z) will be...
x = 1465.24 + 1000 * cos(45) (FRONT = plus)
y = 2525.21 - 1000 * sin(45) (LEFT = minus)
z = 73.61 + 1000 * sin(45) (UP = plus)