Skip to content

ParametricCurve ​

A curve as three coordinate expressions in tt, compiled and sampled over [0,span][0,\text{span}] — the general form KnotCurve is a convenience over.

ParametricCurve(x, y, z, span?, samples?)the sampled points of the parameterisation
Typed signatures
TypePackageApplies
(any, any, any, number?, number?) -> list<list<real>>braidalways

Domain: Braids and knots

Examples

Basic #

A circle in the plane, sampled at 40 points over [0,2π][0, 2\pi]

live ↗
InLength(ParametricCurve(cos⁡(t),sin⁡(t),0,2π,40))\mathrm{Length}(\mathrm{ParametricCurve}(\cos(t), \sin(t), 0, 2π, 40))Out4040

The last of 40 samples of a line over [0,1][0, 1] stops one step short of the end

live ↗
InLast(ParametricCurve(t,2t,3t,1,40))\mathrm{Last}(\mathrm{ParametricCurve}(t, 2t, 3t, 1, 40))Out[0.975,1.95,2.925]\bigl\lbrack0.975, 1.95, 2.925\bigr\rbrack
About
Examples2

See also: KnotCurve, LorenzCurve