s2point: Single point on the (unit) sphere

Description Usage Arguments Details Value Examples

View source: R/s2point.R

Description

Make an object of class "s2point" representing a single point on the unit sphere.

Usage

1

Arguments

...

Input to interpret as a point on the sphere. Either in terms of three Eucledian coordinates (x,y,z) or two spherical coordinates (latitude,longitude). See Details.

Details

For three Eucledian coordinates the following type of inputs are recognised:

For two spherical coordinates a named input is required. The names can either be given as argument names of the function or as the names of the provided input. Input latitude is partially matched to "latitude" and input longitude is either partially matched to longitude or exactly matched to lng. In all cases measurements are in degrees and should be in [-90,90] (latitude) and [-180,180] (longitude). The following type of inputs are recognised:

Value

Object of class "s2pp".

Examples

1
2
3
4
5
6
7
longitude <- c(90)
latitude <- c(45)
xyz <- s2point(lon = longitude, lat = latitude)
x <- xyz[1]
y <- xyz[2]
z <- xyz[3]
xyz2 <- s2point(x=x, y=y, z=z)

spatstat/spatstat.sphere documentation built on July 5, 2017, 11:47 p.m.