JSPM

circumcenter

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24165
  • Score
    100M100P100Q141450F
  • License MIT

Computes circumcenters of simplices

Package Exports

  • circumcenter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (circumcenter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

circumcenter

Computes the circumcenter of a simplex. That is, it is the center of an n-sphere passing through n+1 points.

testling badge

build status

#Usage

First install using npm:

npm install circumcenter

Then you can call it like so:

var circumcenter = require("circumcenter")

console.log(circumcenter([[0,0], [0,1], [1,1]]))

//Prints:
//
//    [0.5, 0.5]
//

require("circumcenter")(points)

Computes the circumcenter of a collection of points

require("circumcenter").barycentric(points)

Computes the circumcenter in barycentric coordinates

Credits

(c) 2013 Mikola Lysenko. MIT License