Conversion of 3d Cartesian coordinates to polar coordinates
Source:R/utils-conversion.R
CarToPol.Rd
The function uses basic trigonometric relationships to transform XYZ coordinates to polar coordinates
Arguments
- x
(
matrix
,data.frame
,numeric
) A 3 column data matrix with XYZ coordinates in Cartesian space.- ...
Arguments passed to class-specific methods.
- norad
(
logical
). Toggles whether the rho coordinate (distance from origin) should be omitted from the output.- origin
(
numeric
) Vector with length3
, the XYZ coordinates of the sphere center.