geom3pointi: interpolation in R to the 2

Description Usage Arguments Value Examples

View source: R/f0.rbsb1.code.r

Description

Interpolation in the plane: given two points p0=(x0,y0) and p1=(x1,y1) returns the point p=(x,y) such that vector(p0,p) = z*vector(p0,p1) where z is such that the distance between p0 and p is abs(d). Also sign(d) == sign(z)

Usage

1
geom3pointi(x0, y0, x1, y1, d)

Arguments

x0

see the description

y0

see the description

x1

see the description

y1

see the description

d

see the description

Value

Returns c(x,y), the interpolated points.

Examples

1
 geom3pointi(1, 1, 10, 10, sqrt(2));

rbsb documentation built on May 31, 2017, 1:45 a.m.