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: rad = sm2rad (sm)
Function File: rad = sm2rad (sm, radius)
Function File: rad = sm2rad (sm, sphere)

Converts distance to angle by dividing distance by radius.

Calculates the angles rad for the distances sm in a sphere with radius (also in statute miles). If unspecified, radius defaults to 6371 km, the mean radius of Earth and is converted to statute miles internally.

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 mean radius.

See also: km2rad.

Package: mapping