Trans.Euclid: Transforming into Euclidean coordinate

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/spherepc.R

Description

This function converts a spherical coordinate to a Euclidean coordinate.

Usage

1

Arguments

vec

two-dimensional spherical coordinate.

Details

This function converts a two-dimensional spherical coordinate to a three-dimensional Euclidean coordinate. Longitude should be range from -180 to 180 and latitude from -90 to 90.

Value

three-dimensional vector.

Author(s)

Jongmin Lee

See Also

Trans.sph.

Examples

1
2
3
4
5
Trans.Euclid(c(0, 0))
Trans.Euclid(c(0, 90))
Trans.Euclid(c(90, 0))
Trans.Euclid(c(180, 0))
Trans.Euclid(c(-90, 0))

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'. 
[1] 1 0 0
[1] 0 0 1
[1] 0 1 0
[1] -1  0  0
[1]  0 -1  0

spherepc documentation built on Oct. 7, 2021, 9:14 a.m.