Skip to contents

Interpolates n coordinates 'among existing points'between' existing points, along the perimeter of the coordinates provided and keeping the first point

Usage

coo_interpolate(coo, n)

Arguments

coo

matrix of (x; y) coordinates or any Coo object.

n

integer, the number fo points to interpolate.

Value

a matrix of (x; y) coordinates, or a Coo object.

Examples

b5 <- bot %>% slice(1:5) # for speed sake
stack(b5)

stack(coo_scale(b5))

stack(b5)

stack(coo_interpolate(coo_sample(b5, 12), 120))

coo_plot(bot[1])

coo_plot(coo_interpolate(coo_sample(bot[1], 12), 120))