distPoints {dagR}R Documentation

Calculate distance between two points.

Description

Another rather superfluous helper function, internally used by smoothArc. Calculates the distance between two points.

Usage

distPoints(A, B)

Arguments

A

Vector of length two, indicating x and y of first point.

B

Vector of length two, indicating x and y of second point.

Value

Distance between the two points.

Author(s)

Lutz P Breitling <lutz.breitling@gmail.com>

Examples

dp<-distPoints(c(0,0), c(1,1));
dp;
dp^2;

[Package dagR version 1.1.3 Index]