A data.table with the zenith and azimuth angles (degrees), and the distance to the anchor coordinate.
Arguments
cartesian
A data.table with three columns describing the *XYZ* coordinates of a point cloud.
anchor
A numeric vector of length three which describe the *XYZ* anchor coordinate for reference to get the polar coordinates. It assumes that the reference coordinates are c(X = 0, Y = 0, Z = 0) as default.
digits
A numeric vector of length 1 describing the decimal numbers to round the zenith and azimuth angles. If NULL, round does not apply. NULL as default.
Author
J. Antonio Guzmán Q.
Details
It assumes that the positive *Z* axis is the reference vector for the zenith angle. Likewise, it assumes that the *Y* axis is the north-south direction (positive to negative) for the azimuth angle.
If a point from cartesian presents the same *XY* coordinates than anchor, angles returns NA.