The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: nm = deg2nm (deg)
Function File: nm = deg2nm (deg, radius)
Function File: nm = deg2nm (deg, sphere)

Converts angle in degrees to distance in nautical miles by multiplying angle with radius.

Calculates the distances nm in a sphere with radius (also in nautical miles) for the angles deg. If unspecified, radius defaults to 3440 nm, the mean radius of Earth.

Alternatively, sphere can be one of "sun", "mercury", "venus", "earth", "moon", "mars", "jupiter", "saturn", "uranus", "neptune", or "pluto", in which case radius will be set to that object’s mean radius.

See also: deg2km, deg2sm, km2rad, km2deg, nm2deg, nm2rad, rad2km, rad2nm, rad2sm, sm2deg, sm2rad.

Package: mapping