It transforms the data from the spherical coordinates to Euclidean coordinates.
euclid(u)
A two column matrix or even one single vector, where the first column (or element) is the latitude and the second is the longitude. The order is important.
A three column matrix:
The Euclidean coordinates of the latitude and longitude.
It takes the matrix of unit vectors of latitude and longitude and transforms it to unit vectors.
# NOT RUN {
x <- rvmf(10, rnorm(3), 10)
u <- euclid.inv(x)
euclid(u)
x
# }
Run the code above in your browser using DataLab