use crate*;
/// P-vector to spherical coordinates.
///
/// Given:
/// p double[3] p-vector
///
/// Returned:
/// theta double longitude angle (radians)
/// phi double latitude angle (radians)
///
/// Notes:
///
/// 1) The vector p can have any magnitude; only its direction is used.
///
/// 2) If p is null, zero theta and phi are returned.
///
/// 3) At either pole, zero theta is returned.
///
/// This revision: 2021 May 11