vector-fns
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

vector-fns

Utilities for working immutably with vectors

Concept

Inspired by the fantastic date-fns library, I wanted a simple library that could let me work with n-dimensional vectors in an immutable fashion.

Installation

yarn add vector-fns

or

npm install vector-fns

Usage

You can import the entire library and destructure what you need, like so:

import { add, crossProduct } from "vector-fns";

or you can pick what you want:

import { add } from "vector-fns/lib/add";
import { crossProduct } from "vector-fns/lib/crossProduct";

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0

Package Sidebar

Install

npm i vector-fns

Weekly Downloads

0

Version

0.1.0

License

WTFPL

Unpacked Size

9.89 kB

Total Files

48

Last publish

Collaborators

  • jimmed