array-pack-2d

WebJar for array-pack-2d

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

array-pack-2d
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

array-pack-2d
WebJar for array-pack-2d
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/hughsk/array-pack-2d

Download array-pack-2d

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/array-pack-2d/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>array-pack-2d</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/array-pack-2d/
implementation 'org.webjars.npm:array-pack-2d:0.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/array-pack-2d/
implementation ("org.webjars.npm:array-pack-2d:0.1.1")
'org.webjars.npm:array-pack-2d:jar:0.1.1'
<dependency org="org.webjars.npm" name="array-pack-2d" rev="0.1.1">
  <artifact name="array-pack-2d" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='array-pack-2d', version='0.1.1')
)
libraryDependencies += "org.webjars.npm" % "array-pack-2d" % "0.1.1"
[org.webjars.npm/array-pack-2d "0.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : dtype jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.1.1