Download node_modules/three/src/math/interpolants/DiscreteInterpolant.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/math/interpolants/DiscreteInterpolant.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/math/interpolants/DiscreteInterpolant.js
-
curl -L -o DiscreteInterpolant.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/math/interpolants/DiscreteInterpolant.js
482 Bytes
| import { Interpolant } from '../Interpolant.js'; | |
| /** | |
| * | |
| * Interpolant that evaluates to the sample value at the position preceding | |
| * the parameter. | |
| */ | |
| class DiscreteInterpolant extends Interpolant { | |
| constructor( parameterPositions, sampleValues, sampleSize, resultBuffer ) { | |
| super( parameterPositions, sampleValues, sampleSize, resultBuffer ); | |
| } | |
| interpolate_( i1 /*, t0, t, t1 */ ) { | |
| return this.copySampleValue_( i1 - 1 ); | |
| } | |
| } | |
| export { DiscreteInterpolant }; | |