Learn R Programming

SphereOptimize (version 0.1.1)

from.Sphere: Converting spherical coordinates to Cartesian coordinates

Description

The function from.Sphere convert a list of angles representing a point on a unit sphere to the corresponding Cartesian coordinates.

Usage

from.Sphere(theta)

Arguments

theta

A list of angles. The first item should be between 0 to pi, and the following items should be between 0 to 2*pi.

Value

A vector of the corresponding Cartesian coordinates.

Examples

Run this code
# NOT RUN {
from.Sphere(c(pi/3, pi/4, pi/5))
# }

Run the code above in your browser using DataLab