Conversion of 3d Cartesian coordinates to polar coordinates
The function uses basic trigonometric relationships to transform XYZ coordinates to polar coordinates
CarToPol(x, ...) ## S4 method for signature 'matrix' CarToPol(x, norad = FALSE, origin = c(0, 0, 0)) ## S4 method for signature 'numeric' CarToPol(x, norad = FALSE, origin = c(0, 0, 0)) ## S4 method for signature 'data.frame' CarToPol(x, norad = FALSE, origin = c(0, 0, 0))
x |
( |
... |
Arguments passed to class-specific methods. |
norad |
( |
origin |
( |
A 3-column or 2-column numeric
, matrix
or data.frame
with longitude, latitude and, if set accordingly, radius data.
# some random points xyz <- rbind( c(6371, 0,0), c(0, 6371,0), c(1000,1000,1000) ) # conversions CarToPol(xyz)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.