edi: Calculates euclidean intermediate between two points.

ediR Documentation

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)

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.

Value

returns the (x; y) interpolated coordinates.

See Also

ed, edm.

Examples

edi(c(0,1), c(1,0), r = 0.5)

MomX/Momocs documentation built on Nov. 18, 2023, 10:53 p.m.