cos2sph: Convert form directional cosines to spherical directions

View source: R/cos2sph.R

cos2sphR Documentation

Convert form directional cosines to spherical directions

Description

Calculates the polar spherical directions from directional cosines.

Usage

cos2sph(cdir)

Arguments

cdir

A vector containing the directional cosines (dx/dl, dy/dl, dz/dl).

Value

A vector of length two containing the polar angle (psi) and the azimuthal angle (phi).


AlexCast/apsfs documentation built on Feb. 1, 2024, 9:48 p.m.