sl.xyz2lonlat: Convert X-Y-Z to Lon-Lat

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sl.xyz2lonlat.R

Description

Covert a point from x-y-z to longitude-latitude coordinates.

Usage

1
sl.xyz2lonlat(xyzvec)

Arguments

xyzvec

a vector of length 3 with the x, y, and z coordinates of the point.

Value

A vector of length 2 with the longitude of the point at the first position and the latitude of the point at the second position.

Author(s)

Helge Goessling

See Also

sl.lonlat2xyz

Examples

1
2
3
sl.xyz2lonlat(c(0,1/sqrt(2),1/sqrt(2)))
## Should return:
## [1] 90 45

helgegoessling/spheRlab documentation built on Sept. 29, 2017, 6:36 a.m.