UToConeClock:

--------------------------------------------------------------------------
   Computes cone and clock angles from a unit vector.
   The cone and clock system is defined with the X axis along the sun 
   vector s; this may be towards or away from the sun. The remaining axes are 
   defined by the cross product of X with either the orbit normal or the 
   velocity vector. The clock angle is measured from the Y axis.
   See QSail for detailed frame descriptions.

   If the sail reference frame quaternion is known it can be passed in
   directly, or else the remaining inputs are passed to QSail.

   u should be in the same hemisphere as the reference X axis.

   Type UToConeClock for a demo showing the unit vectors for a circular
   orbit around the sun.

   Since version 7.
--------------------------------------------------------------------------
   Forms:
   [cone, clock] = UToConeClock( u, q )
   [cone, clock] = UToConeClock( u, r, v, s )
   [cone, clock] = UToConeClock( u, r, v, s, c )
   [cone, clock] = UToConeClock( u, [], v, s )
   [cone, clock] = UToConeClock( u, [], v, s, c )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   u             (3,n) Unit vectors
   r             (3,:) Position vector (optional, for orbit normal reference)
   v             (3,:) Velocity vector
   s             (3,:) Sun unit vector
   c             (1,1) Sun sign convention (1 towards, -1 away)

   -------
   Outputs
   -------
   cone          (1,:) Cone angle (rad)
   clock         (1,:) Clock angle (rad)

--------------------------------------------------------------------------
	  Reference: Dachwald, B., "Low Thrust Trajectory Optimization and 
              Interplanetary Mission Analysis Using 
              Evolutionary Neurocontrol," PhD Thesis
              Universitat Bundeswehr Munchen, FRG, April 2004, p. 8.
--------------------------------------------------------------------------
   See also: QSail
--------------------------------------------------------------------------

Children:

Common: Database/Constant
Common: Graphics/Plot2D
Common: Quaternion/QTForm
Math: Linear/Dot
Math: Linear/Unit
Sail: Coordinates/ConeClockToU
Sail: Coordinates/QSail