View source: R/parametric_curve.R
| vc_curve_sample | R Documentation |
Sample an oriented spatial parametric curve
vc_curve_sample(curve, interval, n = 101L)
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. |
Samples preserve the supplied parameter order. A plotted polyline approximates the sampled curve. Coincident spatial points are allowed.
List with type curve3d, interval and samples (t,x,y,z).
vc_curve_sample(function(t)c(cos(t),sin(t),t),c(0,2*pi),n=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.