Documentation |
Convert distance from kilometers to degrees
deg = km2deg(km)
deg = km2deg(km,radius)
deg = km2deg(km,sphere)
deg = km2deg(km) converts distances from kilometers to degrees as measured along a great circle on a sphere with a radius of 6371 km, the mean radius of the Earth.
deg = km2deg(km,radius) converts distances from kilometers to degrees as measured along a great circle on a sphere having the specified radius. radius must be in units of kilometers.
deg = km2deg(km,sphere) converts distances from kilometers to degrees, as measured along a great circle on a sphere approximating an object in the Solar System. sphere may be one of the following strings: 'sun', 'moon', 'mercury', 'venus', 'earth', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', or 'pluto', and is case-insensitive.