eucdist: Calculate the Euclidean distance between two points

View source: R/pictplot.R

eucdistR Documentation

Calculate the Euclidean distance between two points

Description

Calculate the Euclidean distance between two points

Usage

eucdist(x1, y1, x2, y2)

Arguments

x1

x coordinate of point 1

y1

y coordinate of point 1

x2

x coordinate of point 2

y2

y coordinate of point 2

Value

distance between point 1 and 2

Examples

eucdist(0, 0, 2, 2)

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.