util.mat2ang {RGeostats}R Documentation

Converts rotation matrix to angles

Description

Convert a rotation matrix into a vector of angles

Usage

util.mat2ang(ndim, rotmat)

Arguments

ndim

Space dimension

rotmat

Rotation matrix (Dimension: ndim * ndim)

Value

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.


[Package RGeostats version 11.1.2 Index]