DistancePoints: Computes the distance between two points

Description Usage Arguments Value Examples

View source: R/DistancePoints.R

Description

DistancePoints computes the distance between two points

Usage

1

Arguments

P1

Vector containing the xy-coordinates of point 1

P2

Vector containing the xy-coordinates of point 2

Value

Returns the euclidean distance between two points

Examples

1
2
3
P1 <- c(0,0)
P2 <- c(1,1)
d <- DistancePoints(P1, P2)

LearnGeom documentation built on July 14, 2020, 5:06 p.m.