Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

distPoints

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 <l.breitling@posteo.de>

Examples

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

dagR

R Functions for Directed Acyclic Graphs

v1.2.0
GPL-2
Authors
Lutz P Breitling
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.