The calculation is done by finding a minimum value of a cost
function that is the vector difference between (x
,y
)
and the corresponding values returned by geodXy
. This
minimum is calculated in C for speed, using the nmmin
function
that is the underpinning for the Nelder-Meade version of the R function
optim
.
geodXyInverse(x, y, longitudeRef = 0, latitudeRef = 0)
value of x in metres, as given by geodXy
value of y in metres, as given by geodXy
reference longitude, as supplied to geodXy
reference latitude, as supplied to geodXy
a data frame containing longitude
and latitude
Other functions relating to geodesy: geodDist
,
geodGc
, geodXy