spline3d: Calculate a spline curve fit in 3-D

spline3dR Documentation

Calculate a spline curve fit in 3-D

Description

Calculate a spline curve fit in 3-D

Usage

spline3d(x, y = NULL, z = NULL, lengthFactor = 4, verbose = FALSE, ...)

Arguments

x

numeric vector or numeric matrix or data.frame with colnames(x) containing c("x","y","z").

y, z

optional numeric vectors, used only when x is also a numeric vector.

lengthFactor

numeric multiplier used to control the number of intermediate points during smoothing between each provided point.

verbose

logical indicating whether to print verbose output.

Details

This function takes 3-dimensional points as input, and fits a 3-D spline curve to connect the points. It essentially calls stats::spline() on one dimension at a time, relative to the row rank.

Value

numeric matrix with colnames(x)=c("x","y","z").

See Also

Other jam spatial functions: bgaPlotly3d(), compressPolygonM(), dfWide2segments(), simplifyXY()


jmw86069/jambio documentation built on April 21, 2024, 2:48 p.m.