vc_curve_sample: Sample an oriented spatial parametric curve

View source: R/parametric_curve.R

vc_curve_sampleR Documentation

Sample an oriented spatial parametric curve

Description

Sample an oriented spatial parametric curve

Usage

vc_curve_sample(curve, interval, n = 101L)

Arguments

curve

Function of one scalar parameter returning a finite real three-vector in Cartesian x,y,z order.

interval

Two finite parameter endpoints. Reversed endpoints reverse the sample order. Equal endpoints produce one sample.

n

Integer number of samples, at least two. Equal endpoints override this count and produce a single sample.

Details

Samples preserve the supplied parameter order. A plotted polyline approximates the sampled curve. Coincident spatial points are allowed.

Value

List with type curve3d, interval and samples (t,x,y,z).

Examples

vc_curve_sample(function(t)c(cos(t),sin(t),t),c(0,2*pi),n=20)

vectorialcalculus documentation built on Nov. 17, 2026, 1:09 a.m.