principal {dendrometry} | R Documentation |
Principal measure
Description
Principal measure of an angle value. Principal measure ranges from -pi to pi for radian unit while it ranges from -180 to 180 for degree unit.
Usage
principal(angle, angleUnit = c("deg", "rad"))
Arguments
angle |
numeric vector of angle. |
angleUnit |
The unit of |
Value
A matrix of principal measure of angle in both radian and in degree units.
Note
Use principal
in position computations, not distance computations.
See Also
rad
for radian, deg
for degree,
slope2angle
for slope to angle conversion,
angle2slope
for angle to slope conversion.
Examples
principal(303)
principal(23 * pi/8, "rad")
[Package dendrometry version 0.0.2 Index]