barycentric

WebJar for barycentric

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

barycentric
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

barycentric
WebJar for barycentric
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/barycentric

Download barycentric

How to add to project

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

Dependencies

compile (1)

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

Project Modules

There are no modules declared in this project.

barycentric

Computes the location of a point in a simplex in barycentric coordinates (aka areal coordinates).

Usage

Install using npm:

npm install barycentric

And then use as follows:

var barycentric = require("barycentric")

console.log(barycentric([[0,0], [0,1], [1,0]], [0.5, 0.5]))
//Prints:
//
//  [0, 0.5, 0.5]
//

Credits

(c) 2013 Mikola Lysenko. MIT License

Versions

Version
1.0.1