util.ang2mat {RGeoS} | R Documentation |
Convert a vector of angles into a rotation matrix
util.ang2mat(ndim, angles)
ndim |
Space dimension |
angles |
Vector of angles (Dimension = ndim). If ndim=1, the rotation is meaningless If ndim=2, only the first angle is used If ndim>3, an error is returned |
The rotation matrix. Its dimension is ndim*ndim. If ndim=1, it is returned filled with the arbitrary value 1.