array-pack-2d
Quickly pack a nested 2D array into a typed array – useful for flattening point data into a WebGL-friendly format
Last updated 5 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install array-pack-2d 
SYNC missed versions from official npm registry.

array-pack-2d experimental

Quickly pack a nested 2D array into a typed array – useful for flattening point data into a WebGL-friendly format.

Usage

array-pack-2d

packed = pack(array, [type])

Takes a nested 2D array and packs it into a flat, packed one. By default this will be a Float32Array, but you can specify a custom type too: this can be a constructor such as Uint8Array, or a dtype string such as "float32" or "uint8".

License

MIT. See LICENSE.md for details.

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

5 Versions

  • 1.0.0                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 5
This Month 20
Last Day 1
Last Week 6
Last Month 41
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2017 © taobao.org |