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:

AerospaceUtils: Coord/QLVLH
Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Quaternion/Mat2Q
Common: Quaternion/Q2Mat
Math: Linear/Cross
Math: Linear/Unit

Back to the SCPro Module page