UNPKG

@thi.ng/vectors

Version:

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

18 lines (17 loc) 270 B
import { FORMATTER } from "./string.js"; class AVec { buf; offset; stride; constructor(buf, offset = 0, stride = 1) { this.buf = buf; this.offset = offset; this.stride = stride; } toString() { return FORMATTER(this); } } export { AVec };