util.ang2mat {RGeostats}R Documentation

Converts angles to rotation matrix

Description

Convert a vector of angles into a rotation matrix

Usage

util.ang2mat(ndim, angles)

Arguments

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

Value

The rotation matrix. Its dimension is ndim*ndim. If ndim=1, it is returned filled with the arbitrary value 1.


[Package RGeostats version 11.0.6 Index]