[page:Interpolant] →

三次插值([name])

代码示例

const interpolant = new THREE.[name]( new Float32Array( 2 ), new Float32Array( 2 ), 1, new Float32Array( 1 ) ); interpolant.evaluate( 0.5 );

构造函数(Constructor)

[name]( parameterPositions, sampleValues, sampleSize, resultBuffer )

parameterPositions -- 位置数组
sampleValues -- 样本数组
sampleSize -- 样本数量
resultBuffer -- 用于存储插值结果的缓冲区。

属性(Properties)

[property:null parameterPositions]

[property:null resultBuffer]

[property:null sampleValues]

[property:Object settings]

[property:null valueSize]

方法(Methods)

[method:Array evaluate]( [param:Number t] )

评估位置*t*处的插值。

源码(Source)

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]