Returns the point reached by travelling distance from origin along
bearing. Each function uses a different metric space: dest_euclidean
treats coordinates as planar, dest_haversine assumes a sphere,
dest_geodesic an ellipsoid, and dest_rhumb follows a line of constant
bearing.
Usage
ga_dest_rhumb(origin, bearing, distance)
ga_dest_euclidean(origin, bearing, distance)
ga_dest_haversine(origin, bearing, distance)
ga_dest_geodesic(origin, bearing, distance)Examples
# 100km due north and due east of Raleigh
raleigh <- ga_xy(c(-78.6382, -78.6382), c(35.7796, 35.7796))
geoarrow::as_geoarrow_vctr(
ga_dest_geodesic(raleigh, bearing = c(0, 90), distance = c(1e5, 1e5))
)
#> <geoarrow_vctr geoarrow.point{struct}[2]>
#> [1] <POINT (-78.6382 36.680799)> <POINT (-77.5322223 35.7745143)>