tests/testthat/test-bearing_to.R

test_that("bearing to works", {
    expect_equivalent(round(track_bearing_to(c(0, 0, 1, 0), c(0, 1, 1, 0),
                                             0, 0), digits = 2L),
                      c(180.0, 180.0, -134.8, 180.0))

})

Try the traipse package in your browser

Any scripts or data that you put into this service are public.

traipse documentation built on Feb. 27, 2026, 5:08 p.m.