Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

delaunay

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delaunay

Delaunay triangulation in arbitrary dimensions

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-58%
Maintainers
1
Weekly downloads
 
Created
Source

Delaunay

This is a little JavaScript library (for both the browser and Node.JS) that computes Delaunay triangulations in arbitrary dimensions.

Well, actually, that's a lie. It only works in 2 or 3 dimensions. But! The code is written such that it would be very easy to get it to work in any number of dimensions! We just havn't had the need. (To do so, just generalize the algorithms in lib/matrix.js.)

For examples on how to use the code, please look in the examples/ directory.

This code isn't especially efficient; in particular, it runs in quadratic time. There are very clever divide-and-conquer algorithms for Delaunay triangulation (even in arbitrary dimensions!) that are O(n log n). That said, it should be fast enough for most purposes.

This code has been in production use in the Forecast API for some months, and should be stable enough for general use.

Keywords

FAQs

Package last updated on 23 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc