Buckets:

immErfanrajabee/bd / node_modules /three /src /math /interpolants /DiscreteInterpolant.js
imerfanrajabee's picture
download
raw
831 Bytes
import { Interpolant } from '../Interpolant.js';
/**
* Interpolant that evaluates to the sample value at the position preceding
* the parameter.
*
* @augments Interpolant
*/
class DiscreteInterpolant extends Interpolant {
/**
* Constructs a new discrete interpolant.
*
* @param {TypedArray} parameterPositions - The parameter positions hold the interpolation factors.
* @param {TypedArray} sampleValues - The sample values.
* @param {number} sampleSize - The sample size
* @param {TypedArray} [resultBuffer] - The result buffer.
*/
constructor( parameterPositions, sampleValues, sampleSize, resultBuffer ) {
super( parameterPositions, sampleValues, sampleSize, resultBuffer );
}
interpolate_( i1 /*, t0, t, t1 */ ) {
return this.copySampleValue_( i1 - 1 );
}
}
export { DiscreteInterpolant };

Xet Storage Details

Size:
831 Bytes
·
Xet hash:
bdefb700258ff2c578b3a34deb76726d8401079dd39b157ce1ef6c89e6a3626a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.