codecamp

three.js QuaternionLinearInterpolant

代码示例

const interpolant = new THREE.QuaternionLinearInterpolant( new Float32Array( 2 ), new Float32Array( 2 ), 1, new Float32Array( 1 ) ); interpolant.evaluate( 0.5 );

构造函数(Constructor)

QuaternionLinearInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer )

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

属性(Properties)

.parameterPositions : null

.resultBuffer : null

.sampleValues : null

.settings : Object

.valueSize : null

方法(Methods)

.evaluate ( t : Number ) : Array

评估位置t处的插值。

源码(Source)

src/math/interpolants/QuaternionLinearInterpolant.js


three.js LinearInterpolant
three.js Bone
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定