Options
All
  • Public
  • Public/Protected
  • All
Menu

silmarils

Logo

Silmarils

npm version

This library is a collection of functions that I am tired of rewriting for games and interactive visualizations.

It is well typed, data oriented, and works well in modern environments.

// importing modules from UNPKG
import { Point } from "https://unpkg.com/silmarils"

// importing a single function from UNPKG
import { distance } from "https://unpkg.com/silmarils/point";

Alternatively if you're using a bundler then you can install the library from npm and import it instead.

// importing modules from npm
import { Point } from "silmarils";

// importing a single function from npm
import { distance } from "silmarils/point";

Generated using TypeDoc