circumcenter

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    81,238
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    81,238
  • 0.0.0
    0

Package Sidebar

Install

npm i circumcenter

Weekly Downloads

81,238

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mikolalysenko