<< CL_oe_car2kep Coordinates and frames CL_oe_cir2kep >>

CelestLab >> Coordinates and frames > CL_oe_cir2car

CL_oe_cir2car

Circular to cartesian orbital elements

Calling Sequence

[pos,vel,jacob] = CL_oe_cir2car(cir [,mu])

Description

Parameters

cir:

Orbital elements adapted to near-circular orbits [sma;ex;ey;inc;gom;pso] [m,rad] (6xN)

mu :

(optional) Gravitational constant. [m^3/s^2] (default value is %CL_mu)

pos:

Position vector [x;y;z] [m] (3xN)

vel:

Velocity vector [vx;vy;vz] [m/s] (3xN)

jacob:

(optional) Transformation jacobian (See Orbital elements for more details) (6x6xN)

Authors

See also

Examples

// // Example 1
cir = [7000.e3; 0.1; 0.2; 1; 2; 3];
[pos, vel] = CL_oe_cir2car(cir);

// Example 2
cir = [7000.e3; 0.1; 0.2; 1; 2; 3];
[pos, vel, jacob1] = CL_oe_cir2car(cir);
[cir2, jacob2] = CL_oe_car2cir(pos, vel);
cir2 - cir // => zero
jacob2 * jacob1 // => identity

Report an issue
<< CL_oe_car2kep Coordinates and frames CL_oe_cir2kep >>