View source: R/speed2bearing.R
speed2bearing | R Documentation |
This function convert a speed vector represented in complex number into a bearing angle (0°=N ; 90°=E...). This conversion is needed because trigonometric angle are different than bearing.
speed2bearing(
speed,
speed_ref = complex(real = 0, imaginary = 1),
positive = TRUE
)
speed |
speed as complex value |
speed_ref |
reference vector of the angle. Default is the North in order to return bearing.
Use |
positive |
logical to ensure the bearing is positive between 0-360 degree. |
bearing angle in degree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.