Convert viewpoint direction to orientation
vrdir2ori(d) converts the viewpoint direction,
specified by a vector of three elements, to an appropriate orientation
(virtual world rotation vector).
vrdir2ori(d,options) converts the viewpoint
direction with the default algorithm parameters replaced by values
options structure contains the parameter
represents the value below which a number will be treated as zero
(default value is 1e-12).