Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1x | import { mat4 } from 'gl-matrix'; import { CubicSpline } from './CubicSpline'; // prettier-ignore const TRANSFORM_MATRIX = mat4.multiplyScalar( mat4.create(), mat4.fromValues( 1, 4, 1, 0, -3, 0, 3, 0, 3, -6, 3, 0, -1, 3, -3, 1, ), 1 / 6 ) as number[]; class BSpline extends CubicSpline { protected getTransformMatrix(): number[] { return TRANSFORM_MATRIX; } } export { BSpline as default, BSpline }; |