Spherical_to_Cartesian {spheresmooth}R Documentation

Convert spherical coordinates to Cartesian coordinates

Description

This function converts spherical coordinates (theta, phi) to Cartesian coordinates.

Usage

Spherical_to_Cartesian(theta_phi)

Arguments

theta_phi

A matrix where each row contains the spherical coordinates (theta, phi) of a point.

Value

A matrix where each row contains the Cartesian coordinates (x, y, z) of a point.

Examples

theta_phi <- matrix(c(pi/4, pi/3, pi/6, pi/4), ncol = 2, byrow = TRUE)
Spherical_to_Cartesian(theta_phi)

[Package spheresmooth version 0.1.0 Index]