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 x-axis (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 -π
to π. The angle is computed as
directed=FALSE, the undirected angle of orientation
is computed. Angles differing by π are
regarded as equivalent. The values returned are angles
in the range from 0 to π. These angles are
computed by first computing the directed angle,
then adding π to any negative angles.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.