distance: Calculate distance

Description Usage Arguments Value Examples

Description

This function calculate the distance between two points

Usage

1
distance(x1, y1, xp, yp)

Arguments

x1

X coordinate of the point

y1

Y coordinate of the point

xp

X coordinate of the point, can be a vector of X coordinates

yp

Y coordinate of the point, can be a vector of Y coordinates

Value

returns an distance values in degree (or a vector of distances)

Examples

1
2
3
x1 = 0 ; y1 = 0
xp = runif(5) ; yp = runif(5)
azimut (x1, y1, xp, yp)

EmmanuelDuchateau/TLS documentation built on May 14, 2019, 2:01 p.m.