AlphaBetaToU:

Path: SCPro/ProTools

% Compute a unit vector given alpha and beta angles.
 The unit vector is in the same coordinates as r and v.
 beta is the angle from x to y in the x-y plane which is the position
 velocity plane. beta = 0 is the local horizontal.
 alpha is out of that plane.

 Type AlphaBetaToU for a demo in a polar orbit with the velocity 
 vector along +z and the position vector along +x. Beta is fixed
 and alpha varies from -1 to +1. A second demo holds beta = 0 and 
 alpha = 0 for a quarter polar orbit.

--------------------------------------------------------------------------
   Form:
   u = AlphaBetaToU( alpha, beta, r, v )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   alpha   (1,1)   Angle out of the rv plane
   beta    (1,1)   Angle in the rv plane
   r       (3,1)   Position vector
   v       (3,1)   Velocity vector
   mu      (1,1)   Gravity constant

   -------
   Outputs
   -------
   u       (3,1)   Unit vector

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

Children:

AeroUtils: Coord/QLVLH
Common: Graphics/Plot2D
Common: Quaternion/Q2Mat

Back to the SCPro Module page