文件名称:mat4-interpolate:插入两个矩阵到位
文件大小:5KB
文件格式:ZIP
更新时间:2024-06-27 02:31:00
JavaScript
mat4-插值 在两个 4x4 矩阵之间进行插值,使用 W3C 规范中的算法生成与 CSS 动画一致的结果。 与类似,但会进行适当的分解。 平移、缩放、倾斜和透视是线性插值的,旋转是用球面插值插值的。 var mat4 = require ( 'gl-mat4' ) var start = mat4 . create ( ) var end = mat4 . fromRotationTranslation ( [ ] , [ 0 , 1 , 0 , 0 ] , [ 20 , 50 , - 10 ] ) var out = mat4 . create ( ) //the matrix interpolator var interpolate = require ( 'mat4-interpolate' ) //.. in your render loop function rende
【文件预览】:
mat4-interpolate-master
----.gitignore(56B)
----package.json(1KB)
----LICENSE.md(1KB)
----index.js(2KB)
----test.js(731B)
----README.md(2KB)
----test-browser.js(2KB)
----.npmignore(96B)