Catalog npm
PACKAGE EXPLORERView in registry

2d-vectors

npm

vector modules

vectors
Versions collected1
Direct dependencies3From release 0.0.1
Last observed20 Oct, 19:10 UTC

README

Current package documentation

Vectors

A vector class with the following utilities:

Internal vars

this.x (float) and this.y (float)

Static methods

dotProduct

takes (Vector, Vector)
returns float

vectorFromIndex

takes (index, width)
returns vector

linearInterpolation

takes (known, v1, v2)
returns float

bilinearInterpolation

takes (goalV, dotProducts)
returns a linearInterpolation (float)

Prototype methods

magnitude

returns float

normalize

returns normalized Vector

subtract

takes (Vector)
returns Vector

indexFromVector

takes (width) returns float

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.1Registry latest10 Feb 20203

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
kiddspazz/vectors

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:10 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d8cf8b7ecfa8bc2ca346022452e428690925a178b936d50cd18f2b624bc7e072