Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/circumcenter
Computes the circumcenter of a simplex
https://github.com/mikolalysenko/circumcenter
Last synced: about 2 months ago
JSON representation
Computes the circumcenter of a simplex
- Host: GitHub
- URL: https://github.com/mikolalysenko/circumcenter
- Owner: mikolalysenko
- License: mit
- Created: 2013-03-29T22:33:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-09T23:09:06.000Z (almost 10 years ago)
- Last Synced: 2024-10-20T14:27:26.799Z (2 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
circumcenter
============
Computes the [circumcenter](http://en.wikipedia.org/wiki/Circumcenter) of a simplex. That is, it is the center of an [n-sphere](http://en.wikipedia.org/wiki/N-sphere) passing through n+1 points.[![testling badge](https://ci.testling.com/mikolalysenko/circumcenter.png)](https://ci.testling.com/mikolalysenko/circumcenter)
[![build status](https://secure.travis-ci.org/mikolalysenko/circumcenter.png)](http://travis-ci.org/mikolalysenko/circumcenter)
#Usage
First install using npm:
npm install circumcenter
Then you can call it like so:```javascript
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 coordinatesCredits
=======
(c) 2013 Mikola Lysenko. MIT License