Due to angles being measured in degrees modulo 360 it can be annoying to determine the magnitude of a turn from, for example, 310 degrees to 30 degrees. This function simplifies the operation.
1 | compute_turn_magnitude(angle1, angle2, turn_direction = "closest")
|
angle1 |
numeric vector, initial heading in degrees |
angle2 |
numeric vector, terminal heading in degrees |
turn_direction |
character string, should be one of
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.