edi: Calculates euclidean intermediate between two points.

Description Usage Arguments Value See Also Examples

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

1
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

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


Search within the Momocs package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.