CoordinatesFromAngleLength: CoordinatesFromAngleLength

Description Usage Arguments Details Value

Description

Calculates a new x,y location based on an absolute angle in radians [0, 2*pi) and distance from origin x,y

Usage

1

Arguments

xy

numeric, vector of two coordinates c(x,y)

angle

numeric, radians [0, 2*pi) based on unit circle orientation. Therefore, "due east" is 0, "due west" is pi.

length

numeric, same units as x,y coordinates

Details

Coordinates must be in identically-scaled units (e.g. UTM meters). If location data is in lat & long, project coordinates to UTM with 'rgdal' package before running this function.

Value

vector of two coordinates c(x,y)


Blakemassey/ibmr documentation built on Dec. 25, 2021, 8:39 a.m.