EndPoint: Random walk on a sphere

Description Usage Arguments Value Author(s) Examples

View source: R/EndPoint.R

Description

This function allows you calculate the final coordinates and bearing after one step of a random walk on a sphere.

Usage

1
2
3
4
5
6
7
EndPoint(
  longitude = 0,
  latitude = 0,
  bearing = 0,
  distance = 1,
  EarthRad = 6367.4447
)

Arguments

longitude

starting longitude

latitude

starting latitude

bearing

heading in degrees from north

distance

length of step in km

EarthRad

Earth radius in kilometres.

Value

longitude final longitude

latitude final latitude

bearing final bearing in degrees from north

Author(s)

Laura C. Soul lauracsoul@gmail.com

Examples

1
EndPoint(longitude = 0, latitude = 0, bearing = 90, distance = 111, EarthRad = 6367.4447)

laurasoul/dispeRse documentation built on May 25, 2021, 4:50 a.m.