Path: SC/Ephem
% Computes eclipses. Since version 1. -------------------------------------------------------------------------- Form: [n, eclipseType] = Eclipse( rSC, rSource, rPlanet, radiusPlanet, radiusSource ) -------------------------------------------------------------------------- ------ Inputs ------ rSC (3,:) Position vector of the spacecraft rSource (3,: or 1) Position vector of the light source rPlanet (3,: or 1) Position vector of the planet causing the eclipse (default is zeros) radiusPlanet (1,1) Radius of the planet causing the eclipse (default is the Earth) radiusSource (1,1) Radius of the light source (default is the sun) ------- Outputs ------- n (1,:) Normalized Source intensity ( 0 < n < 1 ) eclipseType (1,:) 0 = none 1 = partial, 2 = annular 3 = total --------------------------------------------------------------------------
Common: Graphics/NPlot Common: Graphics/Plot2D Math: Linear/Dot Math: Linear/DupVect Math: Linear/Mag
Back to the SC Module page