Create an S2 Point Vector
In S2 terminology, a "point" is a 3-dimensional unit vector representation
of an s2_lnglat()
. Internally, all s2 objects are stored as
3-dimensional unit vectors.
s2_point(x, y, z) as_s2_point(x, ...) ## S3 method for class 's2_point' as_s2_point(x, ...) ## S3 method for class 's2_lnglat' as_s2_point(x, ...) ## S3 method for class 's2_geography' as_s2_point(x, ...) ## S3 method for class 'matrix' as_s2_point(x, ...) ## S3 method for class 's2_point' as.data.frame(x, ...) ## S3 method for class 's2_point' as.matrix(x, ...)
x, y, z |
Vectors of latitude and longitude values in degrees. |
... |
Unused |
An object with class s2_point
lnglat <- s2_lnglat(-64, 45) # Halifax, Nova Scotia! as_s2_point(lnglat) as.data.frame(as_s2_point(lnglat))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.