experience and innovation

Now Hiring!

-------------------------------------------------------------------------------
   Computes planet centered orbital elements. 
   If no outputs are specified it will plot the planet centered orbit.
-------------------------------------------------------------------------------
   Form:
   el = PtchCnc( vC, vPC, rC, rPC, muC, muP )
-------------------------------------------------------------------------------

   ------
   Inputs
   ------
   vC		      (3,1)   Velocity of the spacecraft in the central frame
   vPC         (3,1)   Velocity of the planet in the central frame
   rC          (3,1)   Position of the spacecraft in the central frame
   rPC         (3,1)   Position of the planet in the central frame
   muC         (1,1)   Gravitational parameter of the central body
   muP         (1,1)   Gravitational parameter of the planet

   -------
   Outputs
   -------
   el          (:)     Elements in the planet frame
                       el.a, el.e, el.i, el.w, el.L, el.M
             
-------------------------------------------------------------------------------