Path: Orbit/OrbitCoord
% Determine the locus of visibility for a satellite above a planet. The planet is spherical. Type LocusOfVisibility for a demo. -------------------------------------------------------------------------- Form: rLocus = LocusOfVisibility( rSat, radiusPlanet, n ) [lat, lon] = LocusOfVisibility( rSat, radiusPlanet, n ) -------------------------------------------------------------------------- ------ Inputs ------ rSat (3,1) Location of the satellite in the planet frame radiusPlanet (1,1) Radius of planet n (1,1) Number of points in the locus ------- Outputs ------- rLocus (3,n) Locust of points or lat (1,n) Latitude (rad) lon (1,n) Longitude (rad) --------------------------------------------------------------------------