Learn R Programming

spherepc (version 0.1.2)

Trans.Euclid: Transforming into Euclidean coordinate

Description

This function converts a spherical coordinate to a Euclidean coordinate.

Usage

Trans.Euclid(vec)

Arguments

vec

two-dimensional spherical coordinate.

Value

three-dimensional vector.

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.

See Also

Trans.sph.

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab