import type { vec4 } from 'gl-matrix' ; class Vec4Util { /** Used to get data from a flat buffer */ static fromBuf ( out , ary , idx ) { out [ 0 ] = ary [ idx ] ; out [ 1 ] = ary [ idx + 1 ] ; out [ 2 ] = ary [ idx + 2 ] ; return out ; } /** Put data into a flat buffer */ static toBuf ( v , ary , idx ) { ary [ idx ] = v [ 0 ] ; ary [ idx + 1 ] = v [ 1 ] ; ary [ idx + 2 ] = v [ 2 ] ; return this ; } } export default Vec4Util ;