I have X Y Z coordinate data in a time series as three columns and 1000 rows. This 3D point is moving, in that every row has a new X Y Z position. The 3D point is not moving very fast or far. I am using this data to emulate (model) a device that sits at the GCS origin 0,0,0. This device measures direction toward a 3D point as two orthogonal plane angles. In this case one part of the device measures the XZ angle, and the other part measures the YZ angle. How do I report my data as if it is being read by my machine? I want to calculate the two angle strings and have the results range from +90 degrees to zero (at perpendicular to XY plane) to -90. I know this will not allow me to compute the 3D position, I only need the vector direction to the 3D point relative to the origin.
My thoughts are to create a unit vector from origin to the 3D point, then what maybe? ARCTAN? I did this but the values go ll over the place, positive and negative, lots of discontinuities. I need the angle values to be continuous from horizon (+90) thru normal (0) to horizon (-90) in the XZ and YZ planes. I can try to explain it further but it is hard... Most time a pair of angles to denote a direction to a 3D point is Azimuth (from North) and Elevation (from horizon), as in demarking a star location form a given point on earth. This is different as I can measure elevation in two orthogonal planes to get the complete direction description from the origin of a GCS to a 3D point. At least I think this will be enough information to do so. Please help
Bookmarks