circumcenter

WebJar for circumcenter

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

circumcenter
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

circumcenter
WebJar for circumcenter
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/circumcenter

Download circumcenter

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/circumcenter/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>circumcenter</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/circumcenter/
implementation 'org.webjars.npm:circumcenter:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/circumcenter/
implementation ("org.webjars.npm:circumcenter:1.0.0")
'org.webjars.npm:circumcenter:jar:1.0.0'
<dependency org="org.webjars.npm" name="circumcenter" rev="1.0.0">
  <artifact name="circumcenter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='circumcenter', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "circumcenter" % "1.0.0"
[org.webjars.npm/circumcenter "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : dup jar [1.0.0,2)
org.webjars.npm : robust-linear-solve jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

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

Version
1.0.0