angle-conversion {tectonicr} | R Documentation |
Degrees to Radians
Description
Helper functions to transform between angles in degrees and radians.
Usage
rad2deg(rad)
deg2rad(deg)
Arguments
rad |
(array of) angles in radians. |
deg |
(array of) angles in degrees. |
Value
numeric. angle in degrees or radians.
Examples
deg2rad(seq(-90, 90, 15))
rad2deg(seq(-pi / 2, pi / 2, length = 13))
[Package tectonicr version 0.3.2 Index]