even more
This commit is contained in:
parent
82e092ba55
commit
8f50ebdb97
2 changed files with 1842 additions and 3095 deletions
|
|
@ -13,11 +13,6 @@ const blendSeconds = 0.12;
|
|||
|
||||
const maxFrames = 32;
|
||||
|
||||
/**
|
||||
* Replays a server-streamed scalar by interpolating between timestamped
|
||||
* snapshots at the render time; coasts briefly on the streamed rate of change
|
||||
* when the buffer runs dry.
|
||||
*/
|
||||
export class LinearInterpolator {
|
||||
private frames: Array<Frame> = [];
|
||||
private blendOffset = 0;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { LinearInterpolator } from './linear-interpolator';
|
||||
|
||||
// Indexed access, not .x/.y, so it never depends on the vec2 prototype plugin.
|
||||
export class Vec2Interpolator {
|
||||
private x: LinearInterpolator;
|
||||
private y: LinearInterpolator;
|
||||
|
|
|
|||
Loading…
Reference in a new issue