Skip to main content

computeCatmullRomSplineUniformDistance

Constants

sample : Array.<number>
p0 : Array.<number>
p1 : Array.<number>
p2 : Array.<number>
p3 : Array.<number>

Functions

computeCatmullRomSplineUniformDistance(result, input, input_length, dimensions, sample_count, [alpha])

Takes distances between points into account and samples at equal intervals along linear distance along the point sequence. Computationally slightly more expensive, but produces very predictable and stable results

sample : Array.<number>

Kind: global constant

p0 : Array.<number>

Kind: global constant

p1 : Array.<number>

Kind: global constant

p2 : Array.<number>

Kind: global constant

p3 : Array.<number>

Kind: global constant

computeCatmullRomSplineUniformDistance(result, input, input_length, dimensions, sample_count, [alpha])

Takes distances between points into account and samples at equal intervals along linear distance along the point sequence. Computationally slightly more expensive, but produces very predictable and stable results

Kind: global function

ParamTypeDefaultDescription
resultArray.<number> | Float32Array
inputArray.<number> | Float32Array
input_lengthnumbernumber of points in the input
dimensionsnumbernumber of dimensions per vertex
sample_countnumbernumber of discrete points to be generated
[alpha]number0.5parameter for control point weights (see non-parametric catmull-rom for details on "alpha" definition)