(numeric) Vector, XYZ or longitude-latitude coordinates of the first point along the arc.
p2
(numeric) Vector, XYZ or longitude-latitude coordinates of the last point along the arc.
output
(character) The type of the output value. "distance" will give the distance
in the metric that was fed to the function for the coordinates or the radius.
"deg" will output the the distance in degrees, "rad" will do
so in radians.
origin
(numeric) Vector, the center of the circle in XYZ coordinates (default is c(0,0,0)).
radius
(numeric) The radius of the circle in case the input points have polar coordinates only.
Unused when XYZ coordinates are entered. Defaults to the authalic radius of Earth ca. 6371.007km.