Learn R Programming

IceCast (version 2.1.0)

get_dist: Find euclidean distance

Description

Finds the euclidean distance between two points (ignoring projection)

Usage

get_dist(p1, p2)

Arguments

p1

vector giving the x and y coordinate pair for the first point

p2

vector giving the x and y coordinate pair for the second point

Value

distance value

Examples

Run this code
# NOT RUN {
get_dist(c(1, 2), c(3, 4))
# }

Run the code above in your browser using DataLab