UNPKG

@thi.ng/vectors

Version:

Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts

7 lines (6 loc) 190 B
import { mapV } from "./map.js"; import { set } from "./set.js"; const fill = (out, v, num, so = out.length * out.stride) => mapV(set.impl(v.length), out, v, num, so, 0); export { fill };