angle: Calculates the angle between two geopositions with respect to...

Description Usage Arguments Value Examples

View source: R/angle.R

Description

Calculates the angle between two geopositions with respect to an axis.

Usage

1
angle(from_lng, from_lat, to_lng, to_lat, respecto = 0)

Arguments

from_lng

Origin longitude

from_lat

Origin latitude

to_lng

Final longitude

to_lat

Final latitude

respecto

Axis where the angles start to be measured, by default is x-axis with angle 0 (respecto=0)

Value

angle in degrees

Examples

1
2
3
4
5
x=-96.9236
y=-19.527196
X=-96.91404
Y=-19.5272
angle(x,y,X,Y,respecto=90) #axis y in 90 degrees

FrankBaut/geospatial documentation built on Nov. 27, 2020, 12:11 p.m.