Spline

Element

The (natural) cubic spline curves (function graph) interpolating a set of points. Create a dynamic spline interpolated curve given by sample points \(p_1\) to \(p_n\).

Usage (signatures)
board.create('spline', [...point]);

Parameters are the points for the spline interpolation.

Parameters
Name Type Attributes Description
point PointLike <repeatable>

Unspecified number of points

Example
var p = [];
p[0] = board.create('point', [-2,2], {size: 4, face: 'o'});
p[1] = board.create('point', [0,-1], {size: 4, face: 'o'});
p[2] = board.create('point', [2,0], {size: 4, face: 'o'});
p[3] = board.create('point', [4,1], {size: 4, face: 'o'});

var c = board.create('spline', p, {strokeWidth:3});
board.create('spline', [x, y]);

Parameters are the points for the spline interpolation.???

Parameters
Name Type Description
x Array

Array with y-coordinates (numbers or functions)

y Array

Array with x-coordinates (numbers or functions)

Attributes

Own

none

Inherited

Members

Own

none

Inherited

Methods

Own

none

Inherited

Events

Own

none

Inherited

Details

Type
JXG.Curve
See
Source
base/curve.js, line 1834

Extends