util.mat2ang {RGeostats} | R Documentation |
Convert a rotation matrix into a vector of angles
util.mat2ang(ndim, rotmat)
ndim |
Space dimension |
rotmat |
Rotation matrix (Dimension: ndim * 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, an error is issued.