View source: R/interp_heading.R
interp_heading | R Documentation |
Function to interpolate headings. Heading interpolation can be a little tricky when you wrap around from 0 to 360, so this function takes care of that.
Used by distance_between(), target_track_distance(), target_ownship_distance(), and track_ownship_distance(). It's likely that if you're looking at using this function you actually want one of those.
interp_heading(currentTimes, currentHeadings, newTimes)
currentTimes |
vector of the times of the existing heading measurements |
currentHeadings |
vector of the existing heading measurements |
newTimes |
vector of the times to be interpolated to |
a vector of headings at the new times (newTimes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.