Intersection of 2 coplanar orbits (ellipses or hyperbolas)
[psoa, psob, numsol] = CL_gm_intersectCoplanOrb(sma1, ecc1, pom1, sma2, ecc2, pom2)
Computes the argument of latitude (= true anomaly + arg of periapsis) of the intersection of 2 coplanar orbits.
The orbit are defined by 3 parameters:
sma: Semi major axis (positive),
ecc: Excentricity,
pom: Argument of periapsis = angle between some arbitrary direction in the orbit plane and the periapsis.
The number of solutions (0, 1 or 2) is returned in numsol.
Notes:
- The orbits can be of any type (elliptical or hyperbolic).
- If the number of intersections is infinite, no solution is returned (numsol == 0).
- If there are no solutions, both psoa and psob are set to %nan.
- If there is 1 solution, it is returned in psoa, and psob is set to %nan.
- If there are 2 solutions, psoa contains the one with the smaller radius.
Semi major axis of orbit 1 [m] (1xN or 1x1)
Excentricity of orbit 1 (1xN or 1x1)
Argument of periapsis of orbit 1 [rad] (1xN or 1x1)
Semi major axis of orbit 2 [m] (1xN or 1x1)
Excentricity of orbit 2 (1xN or 1x1)
Argument of periapsis of orbit 2 [rad] (1xN or 1x1)
Argument of latitude of 1st intersection (or %nan) [rad] (1xN)
Argument of latitude of 2nd intersection (or %nan) [rad] (1xN)
Number of intersections (1xN)
CNES - DCT/SB