Skip to contents

The coordinate-geometry (COGO) step that turns an observer's position, a bearing and a range into the position of what was seen. Spherical (mean radius 6,371,008.8 m, the sphere of calcofi4r::cc_distance_km_sql()); at the ranges of a visual survey (< 20 km) the error against the ellipsoid is under 0.5%.

Usage

cogo_destination(lon, lat, bearing, distance_m)

Arguments

lon, lat

origin, decimal degrees

bearing

true bearing, degrees clockwise from north

distance_m

distance along the surface, metres

Value

a data frame with longitude, latitude (decimal degrees, longitude in [-180, 180)); NA wherever an input is NA

Examples

cogo_destination(-120, 34, 90, 1000)
#>   longitude latitude
#> 1 -119.9892       34