angleCalc: Calculate angle between two sf point objects

View source: R/angleCalc.R

angleCalcR Documentation

Calculate angle between two sf point objects

Description

Calculate angle between two sf point objects

Usage

angleCalc(x, y)

Arguments

x

numeric vector with two elements, X and Y coordinates of a point

y

numeric vector with two elements, X and Y coordinates of a point

Value

azimuthal from x to y, in degrees

Examples

p1 <- c(0, 1)
p2 <- c(1, 2)
angleCalc(p1, p2)


johngodlee/compInd documentation built on Aug. 5, 2024, 8:44 a.m.