computeCatmullRomSplineUniformDistance
Constants
-
sample :
Array.<number> -
p0 :
Array.<number> -
p1 :
Array.<number> -
p2 :
Array.<number> -
p3 :
Array.<number>
Functions
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
| Param | Type | Default | Description |
|---|---|---|---|
| result | Array.<number> | Float32Array | ||
| input | Array.<number> | Float32Array | ||
| input_length | number | number of points in the input | |
| dimensions | number | number of dimensions per vertex | |
| sample_count | number | number of discrete points to be generated | |
| [alpha] | number | 0.5 | parameter for control point weights (see non-parametric catmull-rom for details on "alpha" definition) |