Next: , Previous: , Up: Internal Routines   [Contents][Index]


15.5.635 tense_curve

tense_curve(x, y, xf [, tension][, dlhs, drhs])

Interpolates arbitrary open curves using splines under tension, and returns a 2D array containing the x and y coordinates of the interpolated points. The input points have coordinates (x, y) (arrays), and x must be in ascending order. The interpolation is performed at points determined by the fraction of curve length from the start, xf, which ranges between 0 and 1. tension governs the tenseness of the interpolation curve. It defaults to 1 and must not be smaller. dlhs and drhs are the desired first derivatives at the left-hand and right-hand sides, respectively.

See also: tense, tense_loop