util.dir2ang {RGeostats}R Documentation

Converts direction vector to angles

Description

Convert a direction vector into a vector of angles

Usage

util.dir2ang(ndim, codir)

Arguments

ndim

Space dimension

codir

Direction vector (Dimension: 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, the output vector is NULL


[Package RGeostats version 14.0.10 Index]