unitspheredist: Distance on unitsphere.

Description Usage Arguments Value

Description

Low-level function to calculate distance on the sphere. No checking of arguments is done.

Usage

1
unitspheredist(lat1, long1, lat2, long2)

Arguments

lat1, lat2

Numeric of length 1. Latitude in radians between -pi/2 and pi/2.

long1, long2

Numeric of length 1. Longitude in radians between -pi and pi (or between 0 and 2*pi).

Value

Numeric of length 1.


rubak/spatstatsphere documentation built on May 28, 2019, 9:56 a.m.