util.dir2ang {RGeostats} | R Documentation |
Convert a direction vector into a vector of angles
util.dir2ang(ndim, codir)
ndim |
Space dimension |
codir |
Direction vector (Dimension: ndim) |
The vector of angles. If ndim=1, the rotation is meaningless. The angle is arbitrarily set to 0. If ndim=2, the (unique) rotation angle is returned as the first angle. The second angle is set to 0 If ndim>3, the output vector is NULL