1 // ------------------------------------------------------------------------ //
2 // This source file is part of the 'ESA Advanced Concepts Team's //
3 // Space Mechanics Toolbox' software. //
5 // The source files are for research use only, //
6 // and are distributed WITHOUT ANY WARRANTY. Use them on your own risk. //
8 // Copyright (c) 2004-2006 European Space Agency //
9 // ------------------------------------------------------------------------ //
11 #ifndef PROPAGATEKEP_H
12 #define PROPAGATEKEP_H
14 void propagateKEP(const double *, const double *, const double &, const double &,
17 void IC2par(const double*, const double*, const double &, double*);
19 void par2IC(const double*, const double &, double*, double*);
21 // Returns the cross product of the vectors X and Y.
22 // That is, z = X x Y. X and Y must be 3 element
24 inline void cross(const double *x
, const double *y
, double *z
)
26 z
[0] = x
[1]*y
[2] - x
[2]*y
[1];
27 z
[1] = x
[2]*y
[0] - x
[0]*y
[2];
28 z
[2] = x
[0]*y
[1] - x
[1]*y
[0];