Options
All
  • Public
  • Public/Protected
  • All
Menu

@thi.ng/geom-accel

geom-accel

npm versionnpm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

n-D spatial indexing data structures with a shared ES6 Map/Set-like API.

Some implementations were ported from the Clojure version of thi.ng/geom.

Currently available:

Status

STABLE - used in production

Installation

yarn add @thi.ng/geom-accel
// ES module
<script type="module" src="https://unpkg.com/@thi.ng/geom-accel?module" crossorigin></script>

// UMD
<script src="https://unpkg.com/@thi.ng/geom-accel/lib/index.umd.js" crossorigin></script>

Package sizes (gzipped, pre-treeshake): ESM: 3.80 KB / CJS: 3.87 KB / UMD: 3.85 KB

Dependencies

Usage examples

Several demos in this repo's /examples directory are using this package.

A selection:

ScreenshotDescriptionLive demoSource
Doodle w/ K-nearest neighbor search result visualizationDemoSource
Poisson-disk shape-aware sampling, Voronoi & Minimum Spanning Tree visualizationDemoSource
2D Poisson-disc sampler with procedural gradient mapDemoSource
2D Stratified grid sampling exampleDemoSource

API

Generated API docs

TODO

Authors

Karsten Schmidt

License

© 2013 - 2020 Karsten Schmidt // Apache Software License 2.0

Generated using TypeDoc