Computes the orientation angle of each line segment in a line segment pattern.
A line segment pattern (object of class
Logical flag. See details.
For each line segment, the angle of inclination to the
(in radians) is computed,
and the angles are returned as a numeric vector.
directed=TRUE, the directed angle of orientation
is computed. The angle respects the
sense of direction from
The values returned are angles in the full range from
\pi. The angle is computed as
directed=FALSE, the undirected angle of orientation
is computed. Angles differing by
regarded as equivalent. The values returned are angles
in the range from
\pi. These angles are
computed by first computing the directed angle,
\pi to any negative angles.
a <- psp(runif(10), runif(10), runif(10), runif(10), window=owin()) b <- angles.psp(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.