Learn R Programming

Momocs (version 1.4.1)

edi: Calculates euclidean intermediate between two points.

Description

edi simply calculates coordinates of a points at the relative distance r on the pt1-pt2 defined by their (x; y) coordinates. This function is used internally but may be of interest for other analyses.

Usage

edi(pt1, pt2, r = 0.5)

Value

returns the \((x; y)\) interpolated coordinates.

Arguments

pt1

\((x; y)\) coordinates of the first point.

pt2

\((x; y)\) coordinates of the second point.

r

the relative distance from pt1 to pt2.

See Also

ed, edm.

Examples

Run this code
edi(c(0,1), c(1,0), r = 0.5)

Run the code above in your browser using DataLab