HorizonAngle:

Path: AerospaceUtils/Coord

% Angle between the horizon and a vector from rG to rS. 
 Angles below the  horizon are zero. Assumes the planet is a sphere.

 Type HorizonAngle for a demo.
--------------------------------------------------------------------------
   Form:
   angle = HorizonAngle( rG, rS )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   rG             (3,1)  Position vector on ground
   rS             (3,:)  Position vector in space

   -------
   Outputs
   -------
   angle          (1,:)  Horizon angle (rad)

--------------------------------------------------------------------------

Children:

Common: Graphics/Plot2D
Math: Linear/DupVect
Math: Linear/Unit

Back to the AerospaceUtils Module page